Check for $profile emptiness before calling getReceiverForActor() in ActivityPub->getReceivers
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1837127082pull/13689/head
parent
6c7dee4bcd
commit
5971334ec7
|
@ -1213,7 +1213,7 @@ class Receiver
|
|||
}
|
||||
|
||||
// Fetch the receivers for the public and the followers collection
|
||||
if ((($receiver == $followers) || (($receiver == self::PUBLIC_COLLECTION) && !$isGroup) || ($isGroup && ($element == 'as:audience'))) && !empty($actor)) {
|
||||
if ((($receiver == $followers) || (($receiver == self::PUBLIC_COLLECTION) && !$isGroup) || ($isGroup && ($element == 'as:audience'))) && !empty($profile)) {
|
||||
$receivers = self::getReceiverForActor($tags, $receivers, $follower_target, $profile);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue