mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
GContact discovery added
This commit is contained in:
parent
bf35ff27d3
commit
a6e7b5f295
7 changed files with 83 additions and 4 deletions
|
@ -231,13 +231,13 @@ class ActivityPub
|
|||
$items = $data['orderedItems'];
|
||||
} elseif (!empty($data['first']['orderedItems'])) {
|
||||
$items = $data['first']['orderedItems'];
|
||||
} elseif (!empty($data['first'])) {
|
||||
} elseif (!empty($data['first']) && is_string($data['first'])) {
|
||||
return self::fetchItems($data['first'], $uid);
|
||||
} else {
|
||||
$items = [];
|
||||
}
|
||||
|
||||
if (!empty($data['next'])) {
|
||||
if (!empty($data['next']) && is_string($data['next'])) {
|
||||
$items = array_merge($items, self::fetchItems($data['next'], $uid));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue