slightly less paranoid about including people
This commit is contained in:
parent
15f893d597
commit
0292264613
2 changed files with 3 additions and 3 deletions
|
@ -40,8 +40,8 @@ module Ebooks
|
|||
# Figure out whether to keep this user in the reply prefix
|
||||
# We want to avoid spamming non-participating users
|
||||
def can_include?(username)
|
||||
@tweets.length <= 4 ||
|
||||
!@tweets[-4..-1].select { |t| t.user.screen_name.downcase == username.downcase }.empty?
|
||||
@tweets.length <= 6 ||
|
||||
!@tweets[-6..-1].select { |t| t.user.screen_name.downcase == username.downcase }.empty?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue