diff options
author | Mario <mario@mariovavti.com> | 2021-09-05 11:46:52 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-09-05 11:46:52 +0000 |
commit | 9495fef79bb299aa114bbda72e32ae0a2659e436 (patch) | |
tree | 2a04e5556e750909b1614d119c1452125dbc959d /Zotlabs/Lib/ThreadItem.php | |
parent | de02d4c04b0c7caf22e28aacef72c0cb0d80325f (diff) | |
download | volse-hubzilla-9495fef79bb299aa114bbda72e32ae0a2659e436.tar.gz volse-hubzilla-9495fef79bb299aa114bbda72e32ae0a2659e436.tar.bz2 volse-hubzilla-9495fef79bb299aa114bbda72e32ae0a2659e436.zip |
fix anon comments for cards and articles
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 600f9e97c..cd54fea17 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -842,7 +842,7 @@ class ThreadItem { '$cipher' => $conv->get_cipher(), '$sourceapp' => \App::$sourcename, '$observer' => get_observer_hash(), - '$anoncomments' => ((($conv->get_mode() === 'channel' || $conv->get_mode() === 'display') && perm_is_allowed($conv->get_profile_owner(),'','post_comments')) ? true : false), + '$anoncomments' => ((in_array($conv->get_mode(), ['channel', 'display', 'cards', 'articles']) && 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)') ] |