add debug to subscription list fetch

This commit is contained in:
Andriy Cherniy 2024-01-05 21:18:55 +02:00
parent 4a63f5e45d
commit 03dc5753d4

View file

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