Only use mention and exclusive mention
This commit is contained in:
parent
b9ea7adbda
commit
0e5ee88c43
|
@ -422,7 +422,7 @@ function item_post(App $a) {
|
||||||
|
|
||||||
// Search for forum mentions
|
// Search for forum mentions
|
||||||
if (!$toplevel_item_id) {
|
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);
|
$contact = Contact::getByURL($tag[2], false, [], $profile_uid);
|
||||||
if ($contact['contact-type'] != Contact::TYPE_COMMUNITY) {
|
if ($contact['contact-type'] != Contact::TYPE_COMMUNITY) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue