From 5971334ec701736f06c6e4a057d43c30292811a4 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 2 Dec 2023 16:57:40 -0500 Subject: [PATCH] Check for $profile emptiness before calling getReceiverForActor() in ActivityPub->getReceivers - Address https://github.com/friendica/friendica/issues/13157#issuecomment-1837127082 --- src/Protocol/ActivityPub/Receiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5