Also need to declare $profile or otherwise an invocation of

Receiver::getReceiverForActor() will fail.
This commit is contained in:
Roland Häder 2022-06-17 09:51:11 +02:00
parent af8cd5ca86
commit 0c9aff8a09

View 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');