summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltoas.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r--internal/typeutils/internaltoas.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index 644d832f5..de1badb5c 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -53,6 +53,12 @@ func (c *Converter) AccountToAS(ctx context.Context, a *gtsmodel.Account) (vocab
idProp.SetIRI(profileIDURI)
person.SetJSONLDId(idProp)
+ // published
+ // The moment when the account was created.
+ publishedProp := streams.NewActivityStreamsPublishedProperty()
+ publishedProp.Set(a.CreatedAt)
+ person.SetActivityStreamsPublished(publishedProp)
+
// following
// The URI for retrieving a list of accounts this user is following
followingURI, err := url.Parse(a.FollowingURI)