From 39724d5079a51e1d4aebda01d6bd497014f329e8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 18 Feb 2022 09:12:33 +0000 Subject: [PATCH] Add the mentions --- src/Model/Item.php | 2 +- src/Worker/Notifier.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 8425d5dc34..7439139e05 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1474,7 +1474,7 @@ class Item } // When the post belongs to a a forum then all forum users are allowed to access it - foreach (Tag::getByURIId($uriid, [Tag::EXCLUSIVE_MENTION]) as $tag) { + foreach (Tag::getByURIId($uriid, [Tag::MENTION, Tag::EXCLUSIVE_MENTION]) as $tag) { if (DBA::exists('contact', ['uid' => $uid, 'nurl' => Strings::normaliseLink($tag['url']), 'contact-type' => Contact::TYPE_COMMUNITY])) { $target_uid = User::getIdForURL($tag['url']); if (!empty($target_uid)) { diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index abd5613dd0..146bcce9f1 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -730,7 +730,7 @@ class Notifier $uid = $target_item['contact-uid'] ?: $target_item['uid']; // Update the locally stored follower list when we deliver to a forum - foreach (Tag::getByURIId($target_item['uri-id'], [Tag::EXCLUSIVE_MENTION]) as $tag) { + foreach (Tag::getByURIId($target_item['uri-id'], [Tag::MENTION, Tag::EXCLUSIVE_MENTION]) as $tag) { $target_contact = Contact::getByURL(Strings::normaliseLink($tag['url']), null, [], $uid); if (($target_contact['contact-type'] == Contact::TYPE_COMMUNITY) && $target_contact['manually-approve']) { Group::updateMembersForForum($target_contact['id']);