From: Roland Häder Date: Fri, 17 Jun 2022 07:51:11 +0000 (+0200) Subject: Also need to declare $profile or otherwise an invocation of X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0c9aff8a09c288ce7fe459a32f40bc2f22f2f0e2;p=friendica.git Also need to declare $profile or otherwise an invocation of Receiver::getReceiverForActor() will fail. --- diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index e8c9ac8f7b..be1c3b7e7c 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -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');