summaryrefslogtreecommitdiffstats
path: root/lib/Model/ActivityPub/ACore.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/ActivityPub/ACore.php')
-rw-r--r--lib/Model/ActivityPub/ACore.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Model/ActivityPub/ACore.php b/lib/Model/ActivityPub/ACore.php
index 27c43ae7..42b978bc 100644
--- a/lib/Model/ActivityPub/ACore.php
+++ b/lib/Model/ActivityPub/ACore.php
@@ -227,7 +227,8 @@ class ACore extends Item implements JsonSerializable {
*/
public function isPublic(): bool {
return ($this->getTo() === self::CONTEXT_PUBLIC
- || in_array(self::CONTEXT_PUBLIC, $this->getCcArray()));
+ || in_array(self::CONTEXT_PUBLIC, $this->getCcArray())
+ || in_array(self::CONTEXT_PUBLIC, $this->getToArray()));
}