From 66b4730a70e9bd8744c0e493752c6c58c319ce5e Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 16 Aug 2018 11:46:53 +0200 Subject: [PATCH] api: fix `friendica/notification/seen` api call Fix return item related to notification when notification is set as seen --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5