diff --git a/app/Transformer/ActivityPub/Verb/Announce.php b/app/Transformer/ActivityPub/Verb/Announce.php index 682885b77..30330c91f 100644 --- a/app/Transformer/ActivityPub/Verb/Announce.php +++ b/app/Transformer/ActivityPub/Verb/Announce.php @@ -7,20 +7,20 @@ use League\Fractal; class Announce extends Fractal\TransformerAbstract { - public function transform(Status $status) - { - return [ - '@context' => 'https://www.w3.org/ns/activitystreams', - 'id' => $status->permalink(), - 'type' => 'Announce', - 'actor' => $status->profile->permalink(), - 'to' => ['https://www.w3.org/ns/activitystreams#Public'], - 'cc' => [ - $status->profile->permalink(), - $status->profile->follower_url ?? $status->profile->permalink('/followers') - ], - 'published' => $status->created_at->format(DATE_ISO8601), - 'object' => $status->parent()->url(), - ]; - } + public function transform(Status $status) + { + return [ + '@context' => 'https://www.w3.org/ns/activitystreams', + 'id' => $status->permalink(), + 'type' => 'Announce', + 'actor' => $status->profile->permalink(), + 'to' => ['https://www.w3.org/ns/activitystreams#Public'], + 'cc' => [ + $status->profile->permalink(), + $status->profile->follower_url ?? $status->profile->permalink('/followers') + ], + 'published' => $status->created_at->format(DATE_ISO8601), + 'object' => $status->parent()->url(), + ]; + } } \ No newline at end of file