mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update AP ProfileTransformer, add published attribute
This commit is contained in:
parent
1be21c76f3
commit
adfaa2b140
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue