aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)