From 733509561ad58583625120c95c273f9bd7b66a31 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 21 Nov 2022 23:40:15 -0500 Subject: [PATCH] Update Notify->iid to itemId for notification endpoint --- src/Module/Api/Friendica/Notification/Seen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()]; -- 2.39.5