]> git.mxchange.org Git - friendica.git/commitdiff
Add the mentions
authorMichael <heluecht@pirati.ca>
Fri, 18 Feb 2022 09:12:33 +0000 (09:12 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 18 Feb 2022 09:12:33 +0000 (09:12 +0000)
src/Model/Item.php
src/Worker/Notifier.php

index 8425d5dc3477dea7762734a643a965b976cb95ce..7439139e0564ab2cceab81d1a8424216652d3ecd 100644 (file)
@@ -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)) {
index abd5613dd0bc9937e91028b85f9e7da2c3affcf2..146bcce9f102716b7122f4a0d10f868ce118b970 100644 (file)
@@ -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']);