From: Hypolite Petovan Date: Sat, 2 Dec 2023 21:57:40 +0000 (-0500) Subject: Check for $profile emptiness before calling getReceiverForActor() in ActivityPub... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5971334ec701736f06c6e4a057d43c30292811a4;p=friendica.git Check for $profile emptiness before calling getReceiverForActor() in ActivityPub->getReceivers - Address https://github.com/friendica/friendica/issues/13157#issuecomment-1837127082 --- diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 933b9be438..ff78f0db82 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -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; }