aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
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:21:01 +0200
commit807776cb15f8e4fd30f3f5cc174ac65f0acf3fe6 (patch)
tree61869d583f8f702710a5475c3e294b103cfecfb1 /Zotlabs
parent235ba81f2532bc02352d8724204533f3e0489d6c (diff)
downloadvolse-hubzilla-807776cb15f8e4fd30f3f5cc174ac65f0acf3fe6.tar.gz
volse-hubzilla-807776cb15f8e4fd30f3f5cc174ac65f0acf3fe6.tar.bz2
volse-hubzilla-807776cb15f8e4fd30f3f5cc174ac65f0acf3fe6.zip
anonymous comments are not implemented for photos.
Diffstat (limited to 'Zotlabs')
-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 0f80f46a5..85dae46a5 100644
--- a/Zotlabs/Module/Photos.php
+++ b/Zotlabs/Module/Photos.php
@@ -1036,7 +1036,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"),
@@ -1048,7 +1048,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',
@@ -1167,7 +1167,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,