]> git.mxchange.org Git - friendica.git/commitdiff
Issue 6521: Don't show notifications on posts that the user deleted
authorMichael <heluecht@pirati.ca>
Fri, 15 Mar 2019 05:23:45 +0000 (05:23 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 Mar 2019 05:23:45 +0000 (05:23 +0000)
include/enotify.php

index f9295d5e18df09b91959dc3953a4241290478fa3..becf672b2aaa4cddae79f208d963f9901c099990 100644 (file)
@@ -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;
        }