~mariusor/motley

af68b1e0489215be16a3c720e6516cd20e2b0692 — Marius Orcsik 5 months ago 0a020a0 master
Some debug
1 files changed, 4 insertions(+), 2 deletions(-)

M fedbox.go
M fedbox.go => fedbox.go +4 -2
@@ 1,6 1,9 @@
package motley

import (
	"fmt"
	"os"

	pub "github.com/go-ap/activitypub"
	"github.com/go-ap/handlers"
	st "github.com/go-ap/storage"


@@ 112,7 115,6 @@ func getItemElements(it pub.Item) []string {
}

func (f *fedbox) Walk(depth int) ([]string, error) {
	//fmt.Fprintf(os.Stderr, "Walking %#v\n", *f)
	it, err := f.s.Load(f.iri)
	if err != nil {
		return nil, err


@@ 138,6 140,6 @@ func (f *fedbox) Walk(depth int) ([]string, error) {
		result = append(result, getItemElements(f.tree[iri])...)
	}

	//fmt.Fprintf(os.Stderr, "results %#v\n", result)
	fmt.Fprintf(os.Stderr, "results %#v\n", result)
	return result, err
}