Add check for parent item existence in Model\UserItem::setNotificationForUser
This commit is contained in:
parent
d9b8a1fccd
commit
2db04b0c34
|
@ -75,7 +75,7 @@ class UserItem
|
|||
private static function setNotificationForUser(array $item, int $uid)
|
||||
{
|
||||
$thread = Item::selectFirstThreadForUser($uid, ['ignored'], ['iid' => $item['parent'], 'deleted' => false]);
|
||||
if ($thread['ignored']) {
|
||||
if (!empty($thread['ignored'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user