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.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index d46ce64e2..7d0c483dd 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -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 != "" {