]> git.mxchange.org Git - friendica.git/commitdiff
Check for $profile emptiness before calling getReceiverForActor() in ActivityPub...
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Dec 2023 21:57:40 +0000 (16:57 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Dec 2023 14:13:34 +0000 (09:13 -0500)
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1837127082

src/Protocol/ActivityPub/Receiver.php

index 933b9be4385c2799b9d0e973658024f581488f03..ff78f0db82dbe0b574c5e33115a1f80dacff5256 100644 (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;
                                }