1
0
Fork 0

Merge pull request #5624 from fabrixxm/fix/api-seen

api: fix `friendica/notification/seen` api call
This commit is contained in:
Michael Vogel 2018-08-16 12:41:57 +02:00 committed by GitHub
commit 2b67e8e80d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5635,7 +5635,7 @@ function api_friendica_notification_seen($type)
if ($note['otype']=='item') {
// would be really better with an ItemsManager and $im->getByID() :-P
$item = Item::selectFirstForUser(api_user(), [], ['id' => $note['iid'], 'uid' => api_user()]);
if (DBA::isResult($$item)) {
if (DBA::isResult($item)) {
// we found the item, return it to the user
$ret = api_format_items([$item], $user_info, false, $type);
$data = ['status' => $ret];