Update AP ProfileTransformer, add published attribute

pull/4842/head
Daniel Supernault 1 year ago
parent 1be21c76f3
commit adfaa2b140
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

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

Loading…
Cancel
Save