mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 09:44:25 +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
|
@ -47,7 +47,7 @@ class Reblog extends BaseApi
|
|||
|
||||
$item = Post::selectOriginalForUser($uid, ['id', 'uri-id', 'network'], ['uri-id' => $this->parameters['id'], 'uid' => [$uid, 0]]);
|
||||
if (!DBA::isResult($item)) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
$this->logErrorAndJsonExit(404, $this->errorFactory->RecordNotFound());
|
||||
}
|
||||
|
||||
if ($item['network'] == Protocol::DIASPORA) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue