aboutsummaryrefslogtreecommitdiff
path: root/resources/outbox.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-19 04:51:07 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-19 04:51:07 +0000
commit52dccf70722642ecf701bf5df900b779f168cc1b (patch)
treed8042e8db1d96458e6b76476c5038f3fb892e064 /resources/outbox.go
parenta5a1907249d2666966c6c412f8be17e5b2c67e57 (diff)
downloadcommunique-52dccf70722642ecf701bf5df900b779f168cc1b.tar.gz
working content
Diffstat (limited to 'resources/outbox.go')
-rw-r--r--resources/outbox.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/resources/outbox.go b/resources/outbox.go
index 2656da4..4ac4c6c 100644
--- a/resources/outbox.go
+++ b/resources/outbox.go
@@ -38,16 +38,14 @@ func RenderOutboxPage(name, domain string, db *badger.DB) (map[string]interface{
prefix := []byte("outbox:sample") // TODO
for it.Seek(prefix); it.ValidForPrefix(prefix); it.Next() {
item := it.Item()
- k := item.Key()
err := item.Value(func(v []byte) error {
- fmt.Printf("key=%s, value=%s\n", k, v)
crea := streams.NewActivityStreamsCreate()
obj := streams.NewActivityStreamsObjectProperty()
crea.SetActivityStreamsObject(obj)
note := streams.NewActivityStreamsNote()
contentProp := streams.NewActivityStreamsContentProperty()
- contentProp.AppendIRI(id)
+ contentProp.AppendXMLSchemaString(string(v))
note.SetActivityStreamsContent(contentProp)
obj.AppendActivityStreamsNote(note)