- // Check for mentions to local users
- if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED])) {
- $mentions = Tag::getByURIId($item['uri-id'], [Tag::MENTION, Tag::IMPLICIT_MENTION, Tag::EXCLUSIVE_MENTION]);
- foreach ($mentions as $mention) {
- $uid = User::getIdForURL($mention['url']);
- if (!empty($uid)) {
- $uids[$uid] = $uid;
- }
- }
- }
-
- foreach ($uids as $uid) {