]> git.mxchange.org Git - friendica.git/commitdiff
Also need to declare $profile or otherwise an invocation of
authorRoland Häder <roland@mxchange.org>
Fri, 17 Jun 2022 07:51:11 +0000 (09:51 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Jun 2022 15:18:31 +0000 (17:18 +0200)
Receiver::getReceiverForActor() will fail.

src/Protocol/ActivityPub/Receiver.php

index e8c9ac8f7ba3cdc6bfd3190b53b7d30dc3429a1c..be1c3b7e7cb0e5b9db385798d17ec5cc0e421f92 100644 (file)
@@ -880,7 +880,7 @@ class Receiver
         */
        private static function getReceivers(array $activity, string $actor, array $tags = [], bool $fetch_unlisted = false): array
        {
-               $reply = $receivers = [];
+               $reply = $receivers = $profile = [];
 
                // When it is an answer, we inherite the receivers from the parent
                $replyto = JsonLD::fetchElement($activity, 'as:inReplyTo', '@id');