diff options
author | Mario <mario@mariovavti.com> | 2023-03-23 20:11:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-03-23 20:11:18 +0000 |
commit | 2c483c460a2d5c806b9e62097673ad237e6b154a (patch) | |
tree | 811998820caebf68be26eb471c6f218ec2039992 /Zotlabs/Lib/Activity.php | |
parent | 5c755fdd1c41538c243a428bb72aa2bd62ff105f (diff) | |
download | volse-hubzilla-2c483c460a2d5c806b9e62097673ad237e6b154a.tar.gz volse-hubzilla-2c483c460a2d5c806b9e62097673ad237e6b154a.tar.bz2 volse-hubzilla-2c483c460a2d5c806b9e62097673ad237e6b154a.zip |
initial check in to allow all mentions option
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 226f50636..d4a89d2a4 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2869,7 +2869,7 @@ class Activity { $allowed = false; // TODO: not implemented - // $permit_mentions = intval(PConfig::Get($channel['channel_id'], 'system','permit_all_mentions') && i_am_mentioned($channel,$item)); + $permit_mentions = intval(PConfig::Get($channel['channel_id'], 'system','permit_all_mentions') && i_am_mentioned($channel, $item)); if ($is_child_node) { @@ -2894,7 +2894,7 @@ class Activity { // check permissions against the author, not the sender $allowed = perm_is_allowed($channel['channel_id'], $item['author_xchan'], 'post_comments'); - if ((!$allowed)/* && $permit_mentions*/) { + if ((!$allowed) && $permit_mentions) { if ($p[0]['owner_xchan'] === $channel['channel_hash']) { $allowed = false; } @@ -2946,9 +2946,9 @@ class Activity { $allowed = true; } // TODO: not implemented - /*if ($permit_mentions) { + if ($permit_mentions) { $allowed = true; - }*/ + } } if (tgroup_check($channel['channel_id'], $item) && (!$is_child_node)) { |