From 0e5ee88c43dd74601cbb7319d2d3de0b7abf75f9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 30 Jan 2022 08:48:09 +0000 Subject: [PATCH] Only use mention and exclusive mention --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/item.php b/mod/item.php index 30cb01060..fd284fa2d 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;