GContact discovery added

This commit is contained in:
Michael 2020-03-05 22:03:24 +00:00
parent bf35ff27d3
commit a6e7b5f295
7 changed files with 83 additions and 4 deletions

View file

@ -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));
}