aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-20 12:45:05 -0700
committerzotlabs <mike@macgirvin.com>2017-06-20 12:45:05 -0700
commit07a8151ae66f1ccf00017f521219afdc2f5370ec (patch)
treeb1cc2061bd2409d8f66e7401171d03f4a068d2ef /Zotlabs/Lib/ThreadItem.php
parent1b31c9f8a875db70154b8512b1e2f96f0a6731cd (diff)
downloadvolse-hubzilla-07a8151ae66f1ccf00017f521219afdc2f5370ec.tar.gz
volse-hubzilla-07a8151ae66f1ccf00017f521219afdc2f5370ec.tar.bz2
volse-hubzilla-07a8151ae66f1ccf00017f521219afdc2f5370ec.zip
more anon comment fixes
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-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 8ee35f988..72d8af4dd 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -743,7 +743,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)'),'','' ]