Update AP ProfileTransformer, add published attribute

pull/4842/head
Daniel Supernault 2023-12-25 00:30:05 -07:00
rodzic 1be21c76f3
commit adfaa2b140
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -40,6 +40,7 @@ class ProfileTransformer extends Fractal\TransformerAbstract
'url' => $profile->url(),
'manuallyApprovesFollowers' => (bool) $profile->is_private,
'indexable' => (bool) $profile->indexable,
'published' => $profile->created_at->format('Y-m-d') . 'T00:00:00Z',
'publicKey' => [
'id' => $profile->permalink().'#main-key',
'owner' => $profile->permalink(),