mirror of
https://github.com/friendica/friendica
synced 2025-04-21 03:10:11 +00:00
Many API calls moved
This commit is contained in:
parent
513a745d07
commit
c4d52feea5
14 changed files with 858 additions and 575 deletions
|
@ -214,11 +214,11 @@ class ApiResponse
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function exit(string $root_element, array $data, string $format = null)
|
||||
public function exit(string $root_element, array $data, string $format = null, int $cid = 0)
|
||||
{
|
||||
$format = $format ?? 'json';
|
||||
|
||||
$return = $this->formatData($root_element, $format, $data);
|
||||
$return = $this->formatData($root_element, $format, $data, $cid);
|
||||
|
||||
switch ($format) {
|
||||
case 'xml':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue