]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Refactored Logging environment (cleaned up)
[friendica.git] / 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;
        }