[feature] Add published property to outgoing AP Actor representations (#3671)

This commit is contained in:
tobi
2025-01-23 14:42:31 +00:00
committed by GitHub
parent 0a99901c65
commit 1472d92a8d
2 changed files with 12 additions and 0 deletions

View File

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