X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FApi%2FMastodon%2FNotifications%2FDismiss.php;h=9771f1df6fd0aefbffee77f79eeecad8f2a9b7e6;hb=1b9ec3a2147fc10e4037ff1b2a7aac506cdf3b13;hp=5fc4e95b94827783eae1db482d4f1c5903daaa4d;hpb=1bc72f5b55a01d4aa0590bd71ef7a8f77f90f0b1;p=friendica.git diff --git a/src/Module/Api/Mastodon/Notifications/Dismiss.php b/src/Module/Api/Mastodon/Notifications/Dismiss.php index 5fc4e95b94..9771f1df6f 100644 --- a/src/Module/Api/Mastodon/Notifications/Dismiss.php +++ b/src/Module/Api/Mastodon/Notifications/Dismiss.php @@ -1,6 +1,6 @@ checkAllowedScope(self::SCOPE_WRITE); $uid = self::getCurrentUserID(); if (empty($this->parameters['id'])) { - DI::mstdnError()->UnprocessableEntity(); + $this->logAndJsonError(422, $this->errorFactory->UnprocessableEntity()); } $condition = ['id' => $this->parameters['id']]; @@ -46,6 +46,6 @@ class Dismiss extends BaseApi $Notification->setDismissed(); DI::notification()->save($Notification); - System::jsonExit([]); + $this->jsonExit([]); } }