~mariusor/activitypub-client-example

06609689eb82d754e51789e48bf44c45e58cfcd0 — Marius Orcsik 1 year, 8 months ago c3d8c82
Print what the server returned for our query
1 files changed, 7 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +7 -1
@@ 43,7 43,13 @@ func main() {
		}
		col, ok := it.(vocab.CollectionInterface)
		if !ok {
			log.Fatalf("Unable to convert ActivityPub object of type %s to a Collection type", it.GetType())
			log.Printf("Unable to convert ActivityPub object of type %s to a Collection type", it.GetType())
			ss, err := vocab.MarshalJSON(it)
			if err != nil {
				log.Printf("err: %+s %s\n", err)
			}
			log.Printf("%s\n", ss)
			os.Exit(1)
		}

		next := getNextCollectionPage(col)