diff options
author | 2025-01-23 14:42:31 +0000 | |
---|---|---|
committer | 2025-01-23 14:42:31 +0000 | |
commit | 1472d92a8d36bf1900c8f2887ecd4519649b8193 (patch) | |
tree | 1f6ca8509bb02ad84b711cc5d1b7f04940f51cba /internal/typeutils/internaltoas.go | |
parent | [performance] reduce InboxForward->Create calls by partially implementing Exi... (diff) | |
download | gotosocial-1472d92a8d36bf1900c8f2887ecd4519649b8193.tar.xz |
[feature] Add `published` property to outgoing AP Actor representations (#3671)
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r-- | internal/typeutils/internaltoas.go | 6 |
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) |