Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity
This commit is contained in:
@@ -60,7 +60,7 @@ class Search extends BaseApi
|
||||
], $request);
|
||||
|
||||
if (empty($request['q'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
$this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
|
||||
}
|
||||
|
||||
$limit = min($request['limit'], 40);
|
||||
|
||||
Reference in New Issue
Block a user