Update AP ProfileTransformer, add published attribute

This commit is contained in:
Daniel Supernault 2023-12-25 00:30:05 -07:00
parent 1be21c76f3
commit adfaa2b140
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 1 additions and 0 deletions

View File

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