|
@@ -11,9 +11,16 @@ class Announce extends Fractal\TransformerAbstract
|
|
{
|
|
{
|
|
return [
|
|
return [
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
|
|
|
+ 'id' => $status->permalink(),
|
|
'type' => 'Announce',
|
|
'type' => 'Announce',
|
|
'actor' => $status->profile->permalink(),
|
|
'actor' => $status->profile->permalink(),
|
|
- 'object' => $status->parent()->url()
|
|
|
|
|
|
+ 'to' => ['https://www.w3.org/ns/activitystreams#Public'],
|
|
|
|
+ 'cc' => [
|
|
|
|
+ $status->parent()->profile->permalink(),
|
|
|
|
+ $status->parent()->profile->follower_url
|
|
|
|
+ ],
|
|
|
|
+ 'published' => $status->created_at->format(DATE_ISO8601),
|
|
|
|
+ 'object' => $status->parent()->url(),
|
|
];
|
|
];
|
|
}
|
|
}
|
|
}
|
|
}
|