From: fabrixxm Date: Thu, 16 Aug 2018 09:46:53 +0000 (+0200) Subject: api: fix `friendica/notification/seen` api call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=66b4730a70e9bd8744c0e493752c6c58c319ce5e;p=friendica.git api: fix `friendica/notification/seen` api call Fix return item related to notification when notification is set as seen --- diff --git a/include/api.php b/include/api.php index 9fe3cb4bd7..4807a5ce87 100644 --- a/include/api.php +++ b/include/api.php @@ -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];