aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-09 20:03:00 -0800
committerfriendica <info@friendica.com>2012-01-09 20:03:00 -0800
commit7011f71e8f3e6de89dae2d46d4dece0d02a78351 (patch)
tree7f4ce9f6fe93254e58eebdc631b062ec42176135 /include/conversation.php
parent805eb35a1af7c760f317c7f96816a770a4388e29 (diff)
downloadvolse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.gz
volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.tar.bz2
volse-hubzilla-7011f71e8f3e6de89dae2d46d4dece0d02a78351.zip
post preview
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 4a53060e3..293c5a84a 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -136,6 +136,8 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$profile_owner = 0;
$page_writeable = false;
+ $previewing = (($preview) ? ' preview ' : '');
+
if($mode === 'network') {
$profile_owner = local_user();
$page_writeable = true;
@@ -261,7 +263,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$body = prepare_body($item,true);
$tmp_item = replace_macros($tpl,array(
- '$id' => $item['item_id'],
+ '$id' => (($preview) ? 'P0' : $item['item_id']),
'$linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
'$profile_url' => $profile_link,
'$item_photo_menu' => item_photo_menu($item),
@@ -288,6 +290,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
'$dislike' => '',
'$comment' => '',
'$conv' => (($preview) ? '' : array('href'=> $a->get_baseurl() . '/display/' . $nickname . '/' . $item['id'], 'title'=> t('View in context'))),
+ '$previewing' => $previewing,
'$wait' => t('Please wait'),
));
@@ -624,6 +627,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
'$like' => $like,
'$dislike' => $dislike,
'$comment' => $comment,
+ '$previewing' => $previewing,
'$wait' => t('Please wait'),
));
@@ -890,6 +894,7 @@ function status_editor($a,$x, $notes_cid = 0) {
'$acl' => $x['acl'],
'$bang' => $x['bang'],
'$profile_uid' => $x['profile_uid'],
+ '$preview' => t('Preview'),
));
return $o;