Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity
This commit is contained in:
@@ -41,7 +41,7 @@ class FavouritedBy extends BaseApi
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
$this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
|
||||
}
|
||||
|
||||
if (!$post = Post::selectOriginal(['uri-id'], ['uri-id' => $this->parameters['id'], 'uid' => [0, $uid]])) {
|
||||
|
||||
Reference in New Issue
Block a user