Update Announce AP Transformer

This commit is contained in:
Daniel Supernault 2019-06-24 22:21:54 -06:00
parent 73a6efce97
commit 7522364f23
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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(),