aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-20 12:45:05 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-20 23:12:31 +0200
commit76e98091690cf5f2726bf7cefea217d49b23a5b4 (patch)
tree9ce2ee515601a79156e89e5158fc3b8047f6e90a /Zotlabs/Lib
parent075ced80a6e167c8a81b07d134c7575ba5da6676 (diff)
downloadvolse-hubzilla-76e98091690cf5f2726bf7cefea217d49b23a5b4.tar.gz
volse-hubzilla-76e98091690cf5f2726bf7cefea217d49b23a5b4.tar.bz2
volse-hubzilla-76e98091690cf5f2726bf7cefea217d49b23a5b4.zip
more anon comment fixes
Diffstat (limited to 'Zotlabs/Lib')
-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 97241a7a1..917397686 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -745,7 +745,7 @@ class ThreadItem {
'$cipher' => $conv->get_cipher(),
'$sourceapp' => \App::$sourcename,
'$observer' => get_observer_hash(),
- '$anoncomments' => perm_is_allowed($conv->get_profile_owner(),'','post_comments'),
+ '$anoncomments' => (($conv->get_mode() === 'channel' && 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)'),'','' ]