From: Hank Grabowski Date: Tue, 22 Nov 2022 04:40:15 +0000 (-0500) Subject: Update Notify->iid to itemId for notification endpoint X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=733509561ad58583625120c95c273f9bd7b66a31;p=friendica.git Update Notify->iid to itemId for notification endpoint --- diff --git a/src/Module/Api/Friendica/Notification/Seen.php b/src/Module/Api/Friendica/Notification/Seen.php index 00015d90bc..756c004a98 100644 --- a/src/Module/Api/Friendica/Notification/Seen.php +++ b/src/Module/Api/Friendica/Notification/Seen.php @@ -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()];