Fix mstdn cmd pagination

This commit is contained in:
178inaba 2017-05-06 23:49:46 +09:00
parent 22f47735b4
commit 1c0e37928e
3 changed files with 4 additions and 4 deletions

View file

@ -20,8 +20,8 @@ func cmdFollowers(c *cli.Context) error {
var maxID *int64
var followers []*mastodon.Account
for {
fs, pg, err := client.GetAccountFollowers(
context.Background(), account.ID, &mastodon.Pagination{MaxID: maxID})
pg := mastodon.Pagination{MaxID: maxID}
fs, err := client.GetAccountFollowers(context.Background(), account.ID, &pg)
if err != nil {
return err
}