瀏覽代碼

Update AP ProfileTransformer, add published attribute

Daniel Supernault 1 年之前
父節點
當前提交
adfaa2b140
共有 1 個文件被更改,包括 1 次插入0 次删除
  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(),
           '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(),