aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-02 03:06:46 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-02 03:06:46 +0000
commit1eef5e5d6e9813a5ac9d78943e4afa350a0cb34e (patch)
tree90ebc67da354c0e93fa8cd3bd54cdd1cba452c84 /views
parent2148666991eb98fa6935f4f36fc29cf1e704f834 (diff)
downloadcommunique-1eef5e5d6e9813a5ac9d78943e4afa350a0cb34e.tar.gz
fill out rest of fields
Diffstat (limited to 'views')
-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)