From 90dadbdb94780126b97d42c6e827ca3538762ca5 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 11 Aug 2019 04:13:16 +0200 Subject: [PATCH] Adapt to upstream API changes in go-mastodon --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 2cd9f5d..5bc1330 100644 --- a/main.go +++ b/main.go @@ -122,6 +122,8 @@ func searchToots() error { var pg mastodon.Pagination for { + pg.SinceID = "" + pg.MinID = "" pg.Limit = 40 statuses, err := client.GetAccountStatuses(context.Background(), self.ID, &pg) if err != nil { @@ -174,6 +176,8 @@ func gatherStats() error { var pg mastodon.Pagination for { + pg.SinceID = "" + pg.MinID = "" pg.Limit = 40 statuses, err := client.GetAccountStatuses(context.Background(), self.ID, &pg) if err != nil {