]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Notifications/Dismiss.php
Merge branch '2023.03-rc' into stable
[friendica.git] / src / Module / Api / Mastodon / Notifications / Dismiss.php
index 17c58fe818ddcb441594e57dbaa54a0ba66b6dda..2b774c59e2cf8c68ecad45bfdac02bebfd91fb60 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -41,8 +41,9 @@ class Dismiss extends BaseApi
                        DI::mstdnError()->UnprocessableEntity();
                }
 
-               $Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
-               $Notification->setSeen();
+               $condition = ['id' => $this->parameters['id']];
+               $Notification = DI::notification()->selectOneForUser($uid, $condition);
+               $Notification->setDismissed();
                DI::notification()->save($Notification);
 
                System::jsonExit([]);