From: Michael Date: Fri, 15 Mar 2019 05:23:45 +0000 (+0000) Subject: Issue 6521: Don't show notifications on posts that the user deleted X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b7be251d5f0cbf06650fe2503594b67844c6bb2;p=friendica.git Issue 6521: Don't show notifications on posts that the user deleted --- 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; }