mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:43:42 +00:00
Update Notify->iid to itemId for notification endpoint
This commit is contained in:
parent
6bf5c344f5
commit
733509561a
1 changed files with 1 additions and 1 deletions
|
@ -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()];
|
||||
|
|
Loading…
Reference in a new issue