]> git.mxchange.org Git - friendica.git/commitdiff
Update Notify->iid to itemId for notification endpoint
authorHank Grabowski <hankgrabowski@gmail.com>
Tue, 22 Nov 2022 04:40:15 +0000 (23:40 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Tue, 22 Nov 2022 04:40:15 +0000 (23:40 -0500)
src/Module/Api/Friendica/Notification/Seen.php

index 00015d90bc78316801e42fd395ac746667f7ab33..756c004a987cdb4a581f6d7d32395595e3ec2906 100644 (file)
@@ -65,7 +65,7 @@ class Seen extends BaseApi
                        DI::notify()->save($Notify);
 
                        if ($Notify->otype === Notification\ObjectType::ITEM) {
-                               $item = Post::selectFirstForUser($uid, [], ['id' => $Notify->iid, 'uid' => $uid]);
+                               $item = Post::selectFirstForUser($uid, [], ['id' => $Notify->itemId, 'uid' => $uid]);
                                if (DBA::isResult($item)) {
                                        // we found the item, return it to the user
                                        $ret  = [DI::twitterStatus()->createFromUriId($item['uri-id'], $item['uid'], $include_entities)->toArray()];