aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/outbox.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/views/outbox.go b/views/outbox.go
index 7ea4ace..bfe225a 100644
--- a/views/outbox.go
+++ b/views/outbox.go
@@ -36,14 +36,17 @@ func RenderOutboxCollection(name, domain string, page []models.OutboxItem) (map[
partOfProp := streams.NewActivityStreamsPartOfProperty()
partOfProp.SetIRI(partOf)
oc.SetActivityStreamsPartOf(partOfProp)
- oc.SetActivityStreamsTo(toProp)
itemsProp := streams.NewActivityStreamsOrderedItemsProperty()
for _, v := range page {
+ publishedProp := streams.NewActivityStreamsPublishedProperty()
+ publishedProp.Set(v.CreatedAt)
crea := streams.NewActivityStreamsCreate()
obj := streams.NewActivityStreamsObjectProperty()
crea.SetActivityStreamsObject(obj)
+ crea.SetActivityStreamsTo(toProp)
+ crea.SetActivityStreamsPublished(publishedProp)
note := streams.NewActivityStreamsNote()
contentProp := streams.NewActivityStreamsContentProperty()
@@ -51,8 +54,7 @@ func RenderOutboxCollection(name, domain string, page []models.OutboxItem) (map[
note.SetActivityStreamsContent(contentProp)
note.SetActivityStreamsTo(toProp)
- // publishedProp := streams.NewActivityStreamsPublishedProperty()
- // note.SetActivityStreamsPublished()
+ note.SetActivityStreamsPublished(publishedProp)
obj.AppendActivityStreamsNote(note)
itemsProp.AppendActivityStreamsCreate(crea)