]> git.mxchange.org Git - friendica.git/commitdiff
Only use mention and exclusive mention
authorMichael <heluecht@pirati.ca>
Sun, 30 Jan 2022 08:48:09 +0000 (08:48 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 30 Jan 2022 08:48:09 +0000 (08:48 +0000)
mod/item.php

index 30cb010608de8fd8eba4fe476607b20990652edd..fd284fa2d053175748bb6acc8a1d034849c96820 100644 (file)
@@ -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;