diff options
-rw-r--r-- | CHANGELOG | 8 | ||||
-rw-r--r-- | Zotlabs/Module/Photos.php | 6 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,11 @@ +Hubzilla 2.6.3 (2017-09-18) + - Fix anonymous comments/likes on photos - this is not yet implemented + - Fix favicon not displayed on certain pages + - Fix hubzilla logo icon for favicon and email notifications + - Fix an issue with displaying selected theme in settings/display + - [SECURITY] Restrict the input characters we accept in token verification strings to hex digits + - Remove hubzilla.nl from fallback directory servers + Hubzilla 2.6.2 (2017-08-31) - Fix webfinger returns invalid XML (github issue #851) diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index bb7079a6a..f86801fcc 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -1041,7 +1041,7 @@ class Photos extends \Zotlabs\Web\Controller { $likebuttons = ''; - if($can_post || $can_comment) { + if($observer && ($can_post || $can_comment)) { $likebuttons = [ 'id' => $link_item['id'], 'likethis' => t("I like this \x28toggle\x29"), @@ -1053,7 +1053,7 @@ class Photos extends \Zotlabs\Web\Controller { $comments = ''; if(! count($r)) { - if($can_post || $can_comment) { + if($observer && ($can_post || $can_comment)) { $commentbox = replace_macros($cmnt_tpl,array( '$return_path' => '', '$mode' => 'photos', @@ -1172,7 +1172,7 @@ class Photos extends \Zotlabs\Web\Controller { } - if($can_post || $can_comment) { + if($observer && ($can_post || $can_comment)) { $commentbox = replace_macros($cmnt_tpl,array( '$return_path' => '', '$jsreload' => $return_url, |