]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Mutes.php
Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality
[friendica.git] / src / Module / Api / Mastodon / Mutes.php
index 177b6187769203f33cacac095685e423eac26445..b87da7f7b1036f564e8608579370f643ab7bc196 100644 (file)
@@ -40,12 +40,12 @@ class Mutes extends BaseApi
                $uid = self::getCurrentUserID();
 
                if (empty($this->parameters['id'])) {
-                       DI::mstdnError()->UnprocessableEntity();
+                       $this->logAndJsonError(422, $this->errorFactory->UnprocessableEntity());
                }
 
                $id = $this->parameters['id'];
                if (!DBA::exists('contact', ['id' => $id, 'uid' => 0])) {
-                       DI::mstdnError()->RecordNotFound();
+                       $this->logAndJsonError(404, $this->errorFactory->RecordNotFound());
                }
 
                $request = $this->getRequest([