X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=becf672b2aaa4cddae79f208d963f9901c099990;hb=4810ca570fbaecc432c32497fcbd5b985c1da86d;hp=f9295d5e18df09b91959dc3953a4241290478fa3;hpb=78271f0593ad0387a258d8c243646aaa5f36ee96;p=friendica.git 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; }