Use item uri-id in src/Model/Item.php

This commit is contained in:
Hypolite Petovan
2020-09-12 11:43:02 -04:00
committed by GitHub
parent 5041aab89e
commit 35b98ce97f

View File

@@ -2672,7 +2672,7 @@ class Item
} }
if (!$mention) { if (!$mention) {
$tags = Tag::getByURIId($item_id, [Tag::MENTION, Tag::EXCLUSIVE_MENTION]); $tags = Tag::getByURIId($item['uri-id'], [Tag::MENTION, Tag::EXCLUSIVE_MENTION]);
foreach ($tags as $tag) { foreach ($tags as $tag) {
if (Strings::compareLink($link, $tag['url']) || Strings::compareLink($dlink, $tag['url'])) { if (Strings::compareLink($link, $tag['url']) || Strings::compareLink($dlink, $tag['url'])) {
$mention = true; $mention = true;