Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity
This commit is contained in:
@@ -38,7 +38,7 @@ class Read extends BaseApi
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
if (!empty($this->parameters['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
$this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
|
||||
}
|
||||
|
||||
DBA::update('mail', ['seen' => true], ['convid' => $this->parameters['id'], 'uid' => $uid]);
|
||||
|
||||
Reference in New Issue
Block a user