]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Updated messages.po - again
[friendica.git] / src / Worker / Notifier.php
index f79b466377d2db5ddeeb2ea7f9a04219130132b0..488ade22297d9e84c18781b3f13b821f3e5d7fab 100644 (file)
@@ -730,10 +730,10 @@ 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::getMembersForForum($target_contact['id']);
+                       if ($target_contact && $target_contact['contact-type'] == Contact::TYPE_COMMUNITY && $target_contact['manually-approve']) {
+                               Group::updateMembersForForum($target_contact['id']);
                        }
                }