aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-05 16:38:24 -0800
committerfriendica <info@friendica.com>2012-01-05 16:38:24 -0800
commitb99cb511ca665bad0022de2ca43b5de78b3ffdbf (patch)
tree792ef6a835be450e65b2849b18ebf54e7ee6c2d8 /include/conversation.php
parent53878625f6ecc014283cefbd84f92b6f1294b8a3 (diff)
downloadvolse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.tar.gz
volse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.tar.bz2
volse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.zip
comment preview
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ec1fd4152..d4d6a5569 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -129,7 +129,7 @@ function localize_item(&$item){
* that are based on unique features of the calling module.
*
*/
-function conversation(&$a, $items, $mode, $update) {
+function conversation(&$a, $items, $mode, $update, $preview = false) {
require_once('bbcode.php');
@@ -287,7 +287,7 @@ function conversation(&$a, $items, $mode, $update) {
'$like' => '',
'$dislike' => '',
'$comment' => '',
- '$conv' => array('href'=> $a->get_baseurl() . '/display/' . $nickname . '/' . $item['id'], 'title'=> t('View in context')),
+ '$conv' => (($preview) ? '' : array('href'=> $a->get_baseurl() . '/display/' . $nickname . '/' . $item['id'], 'title'=> t('View in context'))),
'$wait' => t('Please wait'),
));
@@ -483,6 +483,7 @@ function conversation(&$a, $items, $mode, $update) {
'$myphoto' => $a->contact['thumb'],
'$comment' => t('Comment'),
'$submit' => t('Submit'),
+ '$preview' => t('Preview'),
'$ww' => (($mode === 'network') ? $commentww : '')
));
}