aboutsummaryrefslogtreecommitdiff
path: root/views/outbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'views/outbox.go')
-rw-r--r--views/outbox.go12
1 files changed, 12 insertions, 0 deletions
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)