diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-01 15:10:09 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-01 15:10:09 +0000 |
commit | 71495ac61587e3380f413b4d34669a68b5cd8068 (patch) | |
tree | 3f13fff7177b3428a3e86f1a0b4b9b170c580b63 /views | |
parent | 9d870999909d533cc15fbeb8a5a41d7192473a49 (diff) | |
download | communique-71495ac61587e3380f413b4d34669a68b5cd8068.tar.gz |
add dates and stuff
Diffstat (limited to 'views')
-rw-r--r-- | views/outbox.go | 8 |
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) |