From 3b7be251d5f0cbf06650fe2503594b67844c6bb2 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 15 Mar 2019 05:23:45 +0000 Subject: [PATCH] Issue 6521: Don't show notifications on posts that the user deleted --- include/enotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/enotify.php b/include/enotify.php index f9295d5e18..becf672b2a 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -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; }