aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Photos.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-18 16:15:42 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-18 16:15:42 +0200
commit9914e171b15123f5540d8483890c5bab8d596b3f (patch)
tree9c61a1909c66a6f796297d5eb0e93986923383e7 /Zotlabs/Module/Photos.php
parent5c379b4d356169b8eada1f6e1851dbc7f5af6933 (diff)
downloadvolse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.tar.gz
volse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.tar.bz2
volse-hubzilla-9914e171b15123f5540d8483890c5bab8d596b3f.zip
anonymous comments are not implemented for photos.
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r--Zotlabs/Module/Photos.php6
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,