Adapt to upstream API changes in go-mastodon

This commit is contained in:
Christian Muehlhaeuser 2019-08-11 04:13:16 +02:00
parent 637053214c
commit 90dadbdb94
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 4 additions and 0 deletions

View File

@ -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 {