mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Normalize start_time and end_time parameter names in Friendica API event endpoints
This commit is contained in:
parent
bd02340162
commit
946db2ab45
4 changed files with 50 additions and 46 deletions
|
@ -49,23 +49,23 @@ class Index extends BaseApi
|
|||
$items = [];
|
||||
foreach ($events as $event) {
|
||||
$items[] = [
|
||||
'id' => intval($event['id']),
|
||||
'uid' => intval($event['uid']),
|
||||
'cid' => $event['cid'],
|
||||
'uri' => $event['uri'],
|
||||
'name' => $event['summary'],
|
||||
'desc' => BBCode::convertForUriId($event['uri-id'], $event['desc']),
|
||||
'startTime' => $event['start'],
|
||||
'endTime' => $event['finish'],
|
||||
'type' => $event['type'],
|
||||
'nofinish' => $event['nofinish'],
|
||||
'place' => $event['location'],
|
||||
'adjust' => 1,
|
||||
'ignore' => $event['ignore'],
|
||||
'allow_cid' => $event['allow_cid'],
|
||||
'allow_gid' => $event['allow_gid'],
|
||||
'deny_cid' => $event['deny_cid'],
|
||||
'deny_gid' => $event['deny_gid']
|
||||
'id' => intval($event['id']),
|
||||
'uid' => intval($event['uid']),
|
||||
'cid' => $event['cid'],
|
||||
'uri' => $event['uri'],
|
||||
'name' => $event['summary'],
|
||||
'desc' => BBCode::convertForUriId($event['uri-id'], $event['desc']),
|
||||
'start_time' => $event['start'],
|
||||
'end_time' => $event['finish'],
|
||||
'type' => $event['type'],
|
||||
'nofinish' => $event['nofinish'],
|
||||
'place' => $event['location'],
|
||||
'adjust' => 1,
|
||||
'ignore' => $event['ignore'],
|
||||
'allow_cid' => $event['allow_cid'],
|
||||
'allow_gid' => $event['allow_gid'],
|
||||
'deny_cid' => $event['deny_cid'],
|
||||
'deny_gid' => $event['deny_gid']
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue