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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2672,7 +2672,7 @@ class Item
}
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) {
if (Strings::compareLink($link, $tag['url']) || Strings::compareLink($dlink, $tag['url'])) {
$mention = true;