def on_blocklist?(s)
      search = if s.is_a?(Twitter::User)
                 s.name
               elsif s.respond_to?(:user) && !s.is_a?(Twitter::NullObject)
                 from_user(s)
               else
                 s
               end.downcase

      blocklist.any? { |b| search.include?(b.downcase) }
    end
def on_blocklist?(s)
      search = if s.is_a?(Twitter::User)
                 s.name
               elsif s.respond_to?(:user) && !s.is_a?(Twitter::NullObject)
                 from_user(s)
               else
                 s
               end.downcase

      blocklist.any? { |b| search.include?(b.downcase) }
    end
def on_blocklist? ( s ) search = if s . is_a? ( Twitter :: User ) s . name elsif s . respond_to? ( :user ) && ! s . is_a? ( Twitter :: NullObject ) from_user ( s ) else s end . downcase blocklist . any? { | b | search . include? ( b . downcase ) } end
Is this tweet from a user on our blocklist?
Is this tweet from a user on our blocklist?