mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02: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
|
@ -45,7 +45,7 @@ class Lists extends BaseApi
|
|||
}
|
||||
|
||||
if (!Circle::remove($this->parameters['id'])) {
|
||||
DI::mstdnError()->InternalError();
|
||||
$this->logErrorAndJsonExit(500, $this->errorFactory->InternalError());
|
||||
}
|
||||
|
||||
$this->jsonExit([]);
|
||||
|
@ -68,7 +68,7 @@ class Lists extends BaseApi
|
|||
|
||||
$id = Circle::getIdByName($uid, $request['title']);
|
||||
if (!$id) {
|
||||
DI::mstdnError()->InternalError();
|
||||
$this->logErrorAndJsonExit(500, $this->errorFactory->InternalError());
|
||||
}
|
||||
|
||||
$this->jsonExit(DI::mstdnList()->createFromCircleId($id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue