mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Move jsonError out of Factory\Api\Mastodon\Error->InternalError
This commit is contained in:
parent
696c56b6be
commit
0a91484fa0
4 changed files with 7 additions and 10 deletions
|
@ -92,7 +92,7 @@ class Apps extends BaseApi
|
|||
}
|
||||
|
||||
if (!DBA::insert('application', $fields)) {
|
||||
DI::mstdnError()->InternalError();
|
||||
$this->logErrorAndJsonExit(500, $this->errorFactory->InternalError());
|
||||
}
|
||||
|
||||
$this->jsonExit(DI::mstdnApplication()->createFromApplicationId(DBA::lastInsertId())->toArray());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue