aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-11 12:51:25 +0000
committerMario <mario@mariovavti.com>2023-05-11 12:51:25 +0000
commit0155e9131d257b5c80749739708c69ae7d96eb6d (patch)
treeb7f9d60c5694fe35802e02a8e39efec8f2c4d5f3 /Zotlabs/Lib/Activity.php
parent5b80d57a542da0aa221dd69bf6c7f8d6af04956c (diff)
downloadvolse-hubzilla-0155e9131d257b5c80749739708c69ae7d96eb6d.tar.gz
volse-hubzilla-0155e9131d257b5c80749739708c69ae7d96eb6d.tar.bz2
volse-hubzilla-0155e9131d257b5c80749739708c69ae7d96eb6d.zip
remove outdated comments
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 29986e4a5..d18845e91 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2869,8 +2869,6 @@ class Activity {
}
$allowed = false;
-
- // TODO: not implemented
$permit_mentions = intval(PConfig::Get($channel['channel_id'], 'system','permit_all_mentions') && i_am_mentioned($channel, $item));
if ($is_child_node) {
@@ -2928,6 +2926,7 @@ class Activity {
else {
$allowed = true;
+
// reject public stream comments that weren't sent by the conversation owner
if ($is_sys_channel && $item['owner_xchan'] !== $observer_hash && !$fetch_parents) {
$allowed = false;
@@ -2947,7 +2946,7 @@ class Activity {
if (perm_is_allowed($channel['channel_id'], ((!empty($item['item_fetched'])) ? $item['author_xchan'] : $observer_hash), 'send_stream') || $is_sys_channel) {
$allowed = true;
}
- // TODO: not implemented
+
if ($permit_mentions) {
$allowed = true;
}