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

View file

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