Fix another fatal error
authorMichael <heluecht@pirati.ca>
Tue, 11 Jun 2019 06:02:18 +0000 (06:02 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 11 Jun 2019 06:02:18 +0000 (06:02 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 06dbaee..5f33257 100644 (file)
@@ -436,7 +436,7 @@ class Transmitter
                                                                $data['to'][] = $profile['url'];
                                                        } else {
                                                                $data['cc'][] = $profile['url'];
-                                                               if (!$item['private']) {
+                                                               if (!$item['private'] && !empty($actor_profile['followers'])) {
                                                                        $data['cc'][] = $actor_profile['followers'];
                                                                }
                                                        }