Merge pull request #10413 from annando/notice
Fix notice "Undefined index: url in .../src/Protocol/ActivityPub/Transmitter.php on line 611"
This commit is contained in:
commit
bd9fa88c66
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class Transmitter
|
||||||
// But comments to forums aren't directed to the followers collection
|
// But comments to forums aren't directed to the followers collection
|
||||||
// This rule is only valid when the actor isn't the forum.
|
// This rule is only valid when the actor isn't the forum.
|
||||||
// The forum needs to transmit their content to their followers.
|
// 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'];
|
$data['to'][] = $profile['url'];
|
||||||
} else {
|
} else {
|
||||||
$data['cc'][] = $profile['url'];
|
$data['cc'][] = $profile['url'];
|
||||||
|
|
Loading…
Reference in a new issue