From 1eef5e5d6e9813a5ac9d78943e4afa350a0cb34e Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 1 Jan 2023 22:06:46 -0500 Subject: fill out rest of fields --- views/outbox.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/views/outbox.go b/views/outbox.go index 8aef906..47b976d 100644 --- a/views/outbox.go +++ b/views/outbox.go @@ -78,6 +78,18 @@ func RenderOutboxCollection(name, domain string, page []models.OutboxItem) (map[ contentProp.AppendXMLSchemaString(string(v.Content)) note.SetActivityStreamsContent(contentProp) + attrProp := streams.NewActivityStreamsAttributedToProperty() + attrProp.AppendIRI(actorUrl) + note.SetActivityStreamsAttributedTo(attrProp) + + summaryProp := streams.NewActivityStreamsSummaryProperty() + summaryProp.AppendXMLSchemaString("") + note.SetActivityStreamsSummary(summaryProp) + + noteUrlProp := streams.NewActivityStreamsUrlProperty() + noteUrlProp.AppendIRI(noteUrl) + note.SetActivityStreamsUrl(noteUrlProp) + note.SetActivityStreamsTo(toProp) note.SetActivityStreamsPublished(publishedProp) obj.AppendActivityStreamsNote(note) -- cgit v1.2.3