diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-18 22:25:41 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-18 22:25:41 -0700 |
commit | b917cf1eccc62f5f533c0a61ffd699764b39e404 (patch) | |
tree | 09c849b0a4e545a360ad6910a2cf322d98dbc494 /Zotlabs/Lib/ThreadItem.php | |
parent | 4d5469f27ed2bea05dcfc4c286a9d14413a9e6b6 (diff) | |
download | volse-hubzilla-b917cf1eccc62f5f533c0a61ffd699764b39e404.tar.gz volse-hubzilla-b917cf1eccc62f5f533c0a61ffd699764b39e404.tar.bz2 volse-hubzilla-b917cf1eccc62f5f533c0a61ffd699764b39e404.zip |
allow moderated comments like wordpress if permissions are compatible
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index ff4e3205e..50c67c466 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -741,8 +741,12 @@ class ThreadItem { '$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false), '$encrypt' => t('Encrypt text'), '$cipher' => $conv->get_cipher(), - '$sourceapp' => \App::$sourcename - + '$sourceapp' => \App::$sourcename, + '$observer' => get_observer_hash(), + '$anoncomments' => perm_is_allowed($conv->get_profile_owner(),'','post_comments'), + '$anonname' => [ 'anonname', t('Your full name (required)'),'','' ], + '$anonmail' => [ 'anonmail', t('Your email address (required)'),'','' ], + '$anonurl' => [ 'anonurl', t('Your website URL (optional)'),'','' ] )); return $comment_box; |