]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Accounts/Note.php
Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity
[friendica.git] / src / Module / Api / Mastodon / Accounts / Note.php
index 52c76ab6934e79700785684a8fb0e41ff6759cb6..72a7e0838d35fb79025204b3e80419ce59920baf 100644 (file)
@@ -38,7 +38,7 @@ class Note extends BaseApi
                $uid = self::getCurrentUserID();
 
                if (empty($this->parameters['id'])) {
-                       DI::mstdnError()->UnprocessableEntity();
+                       $this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
                }
 
                $request = $this->getRequest([