Update Notify->iid to itemId for notification endpoint

This commit is contained in:
Hank Grabowski 2022-11-21 23:40:15 -05:00
parent 6bf5c344f5
commit 733509561a
1 changed files with 1 additions and 1 deletions

View 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()];