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 subscribers []*mastodon.Account
|
||||||
var pg mastodon.Pagination
|
var pg mastodon.Pagination
|
||||||
|
log.Debug("get followers list")
|
||||||
for {
|
for {
|
||||||
fs, err := masto_client.GetAccountFollowers(context.Background(), masto_user.ID, &pg)
|
fs, err := masto_client.GetAccountFollowers(context.Background(), masto_user.ID, &pg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
subscribers = append(subscribers, fs...)
|
subscribers = append(subscribers, fs...)
|
||||||
|
log.Debug(pg)
|
||||||
if pg.MaxID == "" {
|
if pg.MaxID == "" {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue