diff --git a/app/Transformer/ActivityPub/Verb/Announce.php b/app/Transformer/ActivityPub/Verb/Announce.php index bac669435..682885b77 100644 --- a/app/Transformer/ActivityPub/Verb/Announce.php +++ b/app/Transformer/ActivityPub/Verb/Announce.php @@ -16,8 +16,8 @@ class Announce extends Fractal\TransformerAbstract 'actor' => $status->profile->permalink(), 'to' => ['https://www.w3.org/ns/activitystreams#Public'], 'cc' => [ - $status->parent()->profile->permalink(), - $status->parent()->profile->follower_url + $status->profile->permalink(), + $status->profile->follower_url ?? $status->profile->permalink('/followers') ], 'published' => $status->created_at->format(DATE_ISO8601), 'object' => $status->parent()->url(),