aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-08 22:07:16 -0700
committerFriendika <info@friendika.com>2011-09-08 22:07:16 -0700
commit1e8b3278b0a72a370ca30f4295db1f3c4ea24f5f (patch)
treef7ebb91c5dcc7ce29d1b1cc2e2f4a67769778912 /include/conversation.php
parent3f59f632241d14b43ba8861033aac27dfcfbc9e3 (diff)
downloadvolse-hubzilla-1e8b3278b0a72a370ca30f4295db1f3c4ea24f5f.tar.gz
volse-hubzilla-1e8b3278b0a72a370ca30f4295db1f3c4ea24f5f.tar.bz2
volse-hubzilla-1e8b3278b0a72a370ca30f4295db1f3c4ea24f5f.zip
share not available in display module, as no editor window to paste into
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 6b5bf8d7c..8ff8c9743 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -381,12 +381,12 @@ function conversation(&$a, $items, $mode, $update) {
}
}
-
$likebuttons = '';
+ $shareable = ((($profile_owner == local_user()) && ($mode != 'display') && (! $item['private'])) ? true : false);
if($page_writeable) {
if($toplevelpost) {
- $likebuttons = replace_macros((($item['private'] || ($profile_owner != local_user())) ? $noshare_tpl : $like_tpl),array(
+ $likebuttons = replace_macros(((($shareable)) ? $like_tpl : $noshare_tpl),array(
'$id' => $item['id'],
'$likethis' => t("I like this \x28toggle\x29"),
'$nolike' => t("I don't like this \x28toggle\x29"),