mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity
This commit is contained in:
parent
7f846f153d
commit
7486ebdc10
52 changed files with 76 additions and 73 deletions
|
@ -38,7 +38,7 @@ class Block extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
$this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
|
||||
}
|
||||
|
||||
Contact\User::setBlocked($this->parameters['id'], $uid, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue