mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-02 03:23:16 -06:00
flesh out more of the dereferencer status edit tests, ensure updated at field set on outgoing AS statuses
This commit is contained in:
parent
f4f5e8b5aa
commit
d1db703e5b
2 changed files with 373 additions and 4 deletions
|
|
@ -484,10 +484,9 @@ func (c *Converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (ap.Stat
|
|||
status.SetActivityStreamsInReplyTo(inReplyToProp)
|
||||
}
|
||||
|
||||
// published
|
||||
publishedProp := streams.NewActivityStreamsPublishedProperty()
|
||||
publishedProp.Set(s.CreatedAt)
|
||||
status.SetActivityStreamsPublished(publishedProp)
|
||||
// Set created / updated at properties.
|
||||
ap.SetPublished(status, s.CreatedAt)
|
||||
ap.SetUpdated(status, s.UpdatedAt)
|
||||
|
||||
// url
|
||||
if s.URL != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue