add debug to subscription list fetch
This commit is contained in:
parent
4a63f5e45d
commit
03dc5753d4
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -108,12 +108,14 @@ func main() {
|
|||
|
||||
var subscribers []*mastodon.Account
|
||||
var pg mastodon.Pagination
|
||||
log.Debug("get followers list")
|
||||
for {
|
||||
fs, err := masto_client.GetAccountFollowers(context.Background(), masto_user.ID, &pg)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
subscribers = append(subscribers, fs...)
|
||||
log.Debug(pg)
|
||||
if pg.MaxID == "" {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue