mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Add published
property to outgoing AP Actor representations (#3671)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user