]> git.mxchange.org Git - friendica.git/commitdiff
share not available in display module, as no editor window to paste into
authorFriendika <info@friendika.com>
Fri, 9 Sep 2011 05:07:16 +0000 (22:07 -0700)
committerFriendika <info@friendika.com>
Fri, 9 Sep 2011 05:07:16 +0000 (22:07 -0700)
include/conversation.php

index 6b5bf8d7c61acd61e6974bc630e2f083734b0a71..8ff8c9743660eff61c138c94552bb00225549e34 100644 (file)
@@ -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"),