mirror of
https://github.com/friendica/friendica
synced 2025-05-08 00:24:12 +02:00
Move System::jsonExit to BaseModule->jsonExit
- This will ensure headers set in BaseModule->run will be carried in jsonExit scenarios - Deprecate jsonExit() method in Core\System
This commit is contained in:
parent
e424b7bacb
commit
81279dad9e
119 changed files with 165 additions and 162 deletions
|
@ -61,7 +61,7 @@ class Markers extends BaseApi
|
|||
|
||||
$fields = ['last_read_id' => $last_read_id, 'version' => $version, 'updated_at' => DateTimeFormat::utcNow()];
|
||||
DBA::update('application-marker', $fields, $condition, true);
|
||||
System::jsonExit($this->fetchTimelines($application['id'], $uid));
|
||||
$this->jsonExit($this->fetchTimelines($application['id'], $uid));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ class Markers extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
$application = self::getCurrentApplication();
|
||||
|
||||
System::jsonExit($this->fetchTimelines($application['id'], $uid));
|
||||
$this->jsonExit($this->fetchTimelines($application['id'], $uid));
|
||||
}
|
||||
|
||||
private function fetchTimelines(int $application_id, int $uid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue