From b04809ced4577d75be4316a34e65f2e813c86756 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 6 Dec 2021 20:16:46 -0500 Subject: [PATCH] Initialize $permissions variable in ActivityPub\Transmitter::fetchPermissionBlockFromConversation - Address https://github.com/friendica/friendica/issues/10757#issuecomment-927361800 --- src/Protocol/ActivityPub/Transmitter.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 44b0463b0..9b5d05213 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -437,6 +437,13 @@ class Transmitter return []; } + $permissions = [ + 'to' => [], + 'cc' => [], + 'bto' => [], + 'bcc' => [], + ]; + $activity = json_decode($conversation['source'], true); $actor = JsonLD::fetchElement($activity, 'actor', 'id');