]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Notifications/Dismiss.php
Merge remote-tracking branch 'upstream/develop' into user-defined-channels
[friendica.git] / src / Module / Api / Mastodon / Notifications / Dismiss.php
index a56aa710dd8888e815a27f7fb6fa774a9f6f4013..753c0ac5dcf733cba473a1f35e3b499240a4b865 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -41,10 +41,11 @@ class Dismiss extends BaseApi
                        DI::mstdnError()->UnprocessableEntity();
                }
 
-               $Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
+               $condition = ['id' => $this->parameters['id']];
+               $Notification = DI::notification()->selectOneForUser($uid, $condition);
                $Notification->setDismissed();
                DI::notification()->save($Notification);
 
-               System::jsonExit([]);
+               $this->jsonExit([]);
        }
 }