Update Announce AP Transformer

pull/1461/head
Daniel Supernault 2019-06-24 14:36:41 -06:00
rodzic a5e8b2eec9
commit 023d279b60
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -11,9 +11,16 @@ class Announce extends Fractal\TransformerAbstract
{
return [
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => $status->permalink(),
'type' => 'Announce',
'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(),
];
}
}