Check for $profile emptiness before calling getReceiverForActor() in ActivityPub->getReceivers

- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1837127082
This commit is contained in:
Hypolite Petovan 2023-12-02 16:57:40 -05:00
parent 6c7dee4bcd
commit 5971334ec7

View File

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