Less sensitive bot detection

This commit is contained in:
Jaiden Mispy 2014-12-13 00:44:26 +11:00
parent 4d4131e185
commit 03c8491d57

View file

@ -29,7 +29,7 @@ module Ebooks
usertweets = @tweets.select { |t| t.user.screen_name.downcase == username.downcase }
if usertweets.length > 2
if (usertweets[-1].created_at - usertweets[-3].created_at) < 30
if (usertweets[-1].created_at - usertweets[-3].created_at) < 10
return true
end
end