diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-19 04:51:07 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-19 04:51:07 +0000 |
commit | 52dccf70722642ecf701bf5df900b779f168cc1b (patch) | |
tree | d8042e8db1d96458e6b76476c5038f3fb892e064 | |
parent | a5a1907249d2666966c6c412f8be17e5b2c67e57 (diff) | |
download | communique-52dccf70722642ecf701bf5df900b779f168cc1b.tar.gz |
working content
-rw-r--r-- | resources/outbox.go | 4 |
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) |