Only use mention and exclusive mention

This commit is contained in:
Michael 2022-01-30 08:48:09 +00:00
parent b9ea7adbda
commit 0e5ee88c43
1 changed files with 1 additions and 1 deletions

View 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;