From 52dccf70722642ecf701bf5df900b779f168cc1b Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 23:51:07 -0500 Subject: working content --- resources/outbox.go | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3