From a2b181972174d9e03839ba75950e9f504cfc47f5 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 17 Jun 2021 18:48:23 +0000 Subject: [PATCH] Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php on line 611" --- src/Protocol/ActivityPub/Transmitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 3e6b130a33..8bfc00a862 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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'];