mirror of
https://github.com/friendica/friendica
synced 2025-04-22 05:50:13 +00:00
Set CORS header fields to support Halcyon
This commit is contained in:
parent
d798d0bcd4
commit
89608d5844
2 changed files with 29 additions and 7 deletions
|
@ -44,10 +44,14 @@ class Relationships extends BaseApi
|
|||
'id' => [],
|
||||
]);
|
||||
|
||||
if (empty($request['id']) || !is_array($request['id'])) {
|
||||
if (empty($request['id'])) {
|
||||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
if (!is_array($request['id'])) {
|
||||
$request['id'] = [$request['id']];
|
||||
}
|
||||
|
||||
$relationsships = [];
|
||||
|
||||
foreach ($request['id'] as $id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue