Initialize $permissions variable in ActivityPub\Transmitter::fetchPermissionBlockFromConversation

- Address https://github.com/friendica/friendica/issues/10757#issuecomment-927361800
This commit is contained in:
Hypolite Petovan 2021-12-06 20:16:46 -05:00
parent e6a07832dd
commit b04809ced4

View File

@ -437,6 +437,13 @@ class Transmitter
return [];
}
$permissions = [
'to' => [],
'cc' => [],
'bto' => [],
'bcc' => [],
];
$activity = json_decode($conversation['source'], true);
$actor = JsonLD::fetchElement($activity, 'actor', 'id');