From: Michael Date: Sun, 30 Jan 2022 08:48:09 +0000 (+0000) Subject: Only use mention and exclusive mention X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e5ee88c43dd74601cbb7319d2d3de0b7abf75f9;p=friendica.git Only use mention and exclusive mention --- diff --git a/mod/item.php b/mod/item.php index 30cb010608..fd284fa2d0 100644 --- a/mod/item.php +++ b/mod/item.php @@ -422,7 +422,7 @@ function item_post(App $a) { // Search for forum mentions if (!$toplevel_item_id) { - foreach (Tag::getFromBody($body) as $tag) { + foreach (Tag::getFromBody($body, Tag::TAG_CHARACTER[Tag::MENTION] . Tag::TAG_CHARACTER[Tag::EXCLUSIVE_MENTION]) as $tag) { $contact = Contact::getByURL($tag[2], false, [], $profile_uid); if ($contact['contact-type'] != Contact::TYPE_COMMUNITY) { continue;