From adfaa2b1404e5a66cde66a563951fc24577e01f4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 25 Dec 2023 00:30:05 -0700 Subject: [PATCH] Update AP ProfileTransformer, add published attribute --- app/Transformer/ActivityPub/ProfileTransformer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Transformer/ActivityPub/ProfileTransformer.php b/app/Transformer/ActivityPub/ProfileTransformer.php index cdd4eb82d..45d22cd11 100644 --- a/app/Transformer/ActivityPub/ProfileTransformer.php +++ b/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(),