mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
Less sensitive bot detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user