]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php...
authorMichael <heluecht@pirati.ca>
Thu, 17 Jun 2021 18:48:23 +0000 (18:48 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 17 Jun 2021 18:48:23 +0000 (18:48 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 3e6b130a332d509327910403eaaebaa6a7dde822..8bfc00a8626504b27a96996cf7459f32f5fce2e0 100644 (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'];