1
0
Fork 0

Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php on line 611"

This commit is contained in:
Michael 2021-06-17 18:48:23 +00:00
parent 47b64c8735
commit a2b1819721

View file

@ -608,7 +608,7 @@ class Transmitter
// But comments to forums aren't directed to the followers collection
// This rule is only valid when the actor isn't the forum.
// The forum needs to transmit their content to their followers.
if (($profile['type'] == 'Group') && ($profile['url'] != $actor_profile['url'])) {
if (($profile['type'] == 'Group') && ($profile['url'] != ($actor_profile['url'] ?? ''))) {
$data['to'][] = $profile['url'];
} else {
$data['cc'][] = $profile['url'];