mirror of
https://github.com/friendica/friendica
synced 2024-11-10 01:42:53 +00:00
Issue 6521: Don't show notifications on posts that the user deleted
This commit is contained in:
parent
eb4fb97348
commit
3b7be251d5
1 changed files with 1 additions and 1 deletions
|
@ -784,7 +784,7 @@ function check_item_notification($itemid, $uid, $defaulttype = "") {
|
|||
'author-link', 'author-name', 'author-avatar', 'author-id',
|
||||
'guid', 'parent-uri', 'uri', 'contact-id', 'network'];
|
||||
$condition = ['id' => $itemid, 'gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT]];
|
||||
$item = Item::selectFirst($fields, $condition);
|
||||
$item = Item::selectFirstForUser($uid, $fields, $condition);
|
||||
if (!DBA::isResult($item) || in_array($item['author-id'], $contacts)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue