mirror of
https://github.com/friendica/friendica
synced 2025-04-26 00:30:12 +00:00
Move jsonError out of Factory\Api\Mastodon\Error->Unauthorized
This commit is contained in:
parent
7486ebdc10
commit
6a2ca1a6b6
4 changed files with 10 additions and 13 deletions
|
@ -36,7 +36,7 @@ class VerifyCredentials extends BaseApi
|
|||
$application = self::getCurrentApplication();
|
||||
|
||||
if (empty($application['id'])) {
|
||||
DI::mstdnError()->Unauthorized();
|
||||
$this->logErrorAndJsonExit(401, $this->errorFactory->Unauthorized());
|
||||
}
|
||||
|
||||
$this->jsonExit(DI::mstdnApplication()->createFromApplicationId($application['id']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue