mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02: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));
|
||||
}
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ class Transmitter
|
|||
continue;
|
||||
}
|
||||
|
||||
if ($receiver == $profile['followers'] && !empty($item_profile['followers'])) {
|
||||
if (!empty($profile['followers']) && $receiver == $profile['followers'] && !empty($item_profile['followers'])) {
|
||||
$permissions[$element][] = $item_profile['followers'];
|
||||
} elseif (!in_array($receiver, $exclude)) {
|
||||
$permissions[$element][] = $receiver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue