aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-06 21:30:44 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-06 21:30:44 +0200
commitb883b9c983773f51965680af813dd7e930823460 (patch)
treeb78899b0bba96e0df95bcbeeffc7b8b136d41c73 /Zotlabs
parent5468ebbb436a2abe70eea28185209bbd9838f390 (diff)
downloadvolse-hubzilla-b883b9c983773f51965680af813dd7e930823460.tar.gz
volse-hubzilla-b883b9c983773f51965680af813dd7e930823460.tar.bz2
volse-hubzilla-b883b9c983773f51965680af813dd7e930823460.zip
enable anonymous comments also in /display
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index d916ce2c1..67a507025 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -758,7 +758,7 @@ class ThreadItem {
'$cipher' => $conv->get_cipher(),
'$sourceapp' => \App::$sourcename,
'$observer' => get_observer_hash(),
- '$anoncomments' => (($conv->get_mode() === 'channel' && perm_is_allowed($conv->get_profile_owner(),'','post_comments')) ? true : false),
+ '$anoncomments' => ((($conv->get_mode() === 'channel' || $conv->get_mode() === 'display') && perm_is_allowed($conv->get_profile_owner(),'','post_comments')) ? true : false),
'$anonname' => [ 'anonname', t('Your full name (required)') ],
'$anonmail' => [ 'anonmail', t('Your email address (required)') ],
'$anonurl' => [ 'anonurl', t('Your website URL (optional)') ]