]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Notifications/Dismiss.php
Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes
[friendica.git] / src / Module / Api / Mastodon / Notifications / Dismiss.php
index e3fc3290a118139ed5ebec45f67afe24142e0bc7..277a34d5cb931d5e68bbf60b769b5ee2a83cb89d 100644 (file)
@@ -32,16 +32,16 @@ use Friendica\Network\HTTPException\ForbiddenException;
  */
 class Dismiss extends BaseApi
 {
-       public static function post()
+       protected function post(array $request = [])
        {
                self::checkAllowedScope(self::SCOPE_WRITE);
                $uid = self::getCurrentUserID();
 
-               if (empty(static::$parameters['id'])) {
+               if (empty($this->parameters['id'])) {
                        DI::mstdnError()->UnprocessableEntity();
                }
 
-               $Notification = DI::notification()->selectOneForUser($uid, static::$parameters['id']);
+               $Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
                $Notification->setSeen();
                DI::notification()->save($Notification);