diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-09-18 16:15:42 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-09-18 16:15:42 +0200 |
commit | 9914e171b15123f5540d8483890c5bab8d596b3f (patch) | |
tree | 9c61a1909c66a6f796297d5eb0e93986923383e7 | |
parent | 5c379b4d356169b8eada1f6e1851dbc7f5af6933 (diff) | |
download | volse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.tar.gz volse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.tar.bz2 volse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.zip |
anonymous comments are not implemented for photos.
-rw-r--r-- | Zotlabs/Module/Photos.php | 6 |
1 files changed, 3 insertions, 3 deletions
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, |