mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +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
|
@ -39,7 +39,7 @@ class Unfavourite extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
$this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
|
||||
}
|
||||
|
||||
$item = Post::selectOriginalForUser($uid, ['id', 'uri-id'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue