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.
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.