mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
Move jsonError out of Factory\Api\Mastodon\Error->RecordNotFound
This commit is contained in:
parent
9e71610711
commit
7f846f153d
36 changed files with 68 additions and 56 deletions
|
@ -51,7 +51,7 @@ class ScheduledStatuses extends BaseApi
|
|||
}
|
||||
|
||||
if (!DBA::exists('delayed-post', ['id' => $this->parameters['id'], 'uid' => $uid])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
$this->logErrorAndJsonExit(404, $this->errorFactory->RecordNotFound());
|
||||
}
|
||||
|
||||
Post\Delayed::deleteById($this->parameters['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue