Browse Source

Update AP ProfileTransformer, add published attribute

Daniel Supernault 1 year ago
parent
commit
adfaa2b140
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Transformer/ActivityPub/ProfileTransformer.php

+ 1 - 0
app/Transformer/ActivityPub/ProfileTransformer.php

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