Merge pull request #11074 from MrPetovan/bug/warnings

Initialize $permissions variable in ActivityPub\Transmitter::fetchPermissionBlockFromConversation
This commit is contained in:
Tobias Diekershoff 2021-12-07 07:06:48 +01:00 committed by GitHub
commit 3d08f54966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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