You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was using this library and I think I found a small bug: maxFollowsPerHour and maxFollowsPerDay where not being checked.
After digging a little I discovered that the function throttle() was being called only at the begging of the function followUserFollowers()L477. But if you look a little further there is a forL504 where the "user following thing" is done. So I added another call to throttle() at the end of the loop where the condition calls followCurrentUser(follower). That way the max limits are checked every time after a new user is followed.
Hope I was clear.
The text was updated successfully, but these errors were encountered:
Opened issue for #55
Hello, I was using this library and I think I found a small bug:
maxFollowsPerHour
andmaxFollowsPerDay
where not being checked.After digging a little I discovered that the function
throttle()
was being called only at the begging of the functionfollowUserFollowers()
L477. But if you look a little further there is afor
L504 where the "user following thing" is done. So I added another call tothrottle()
at the end of the loop where the condition callsfollowCurrentUser(follower)
. That way the max limits are checked every time after a new user is followed.Hope I was clear.
The text was updated successfully, but these errors were encountered: