mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Move System::jsonError to BaseModule->jsonError
- This will ensure headers set in BaseModule->run will be carried in jsonError scenarios - Make BaseApi->checkThrottleLimit an object method to use BaseModule->jsonError - Deprecate jsonError() method in Core\System
This commit is contained in:
parent
81279dad9e
commit
46180d7d5b
11 changed files with 48 additions and 26 deletions
|
@ -34,6 +34,6 @@ class Proofs extends BaseApi
|
|||
*/
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
System::jsonError(404, ['error' => 'Record not found']);
|
||||
$this->jsonError(404, ['error' => 'Record not found']);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -263,7 +263,7 @@ class Statuses extends BaseApi
|
|||
$item['gravity'] = Item::GRAVITY_COMMENT;
|
||||
$item['object-type'] = Activity\ObjectType::COMMENT;
|
||||
} else {
|
||||
self::checkThrottleLimit();
|
||||
$this->checkThrottleLimit();
|
||||
|
||||
$item['gravity'] = Item::GRAVITY_PARENT;
|
||||
$item['object-type'] = Activity\ObjectType::NOTE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue