@@ -13,6 +13,8 @@ class TwitterStream |
||
13 | 13 |
end |
14 | 14 |
|
15 | 15 |
def stream!(filters, agent, &block) |
16 |
+ filters = filters.map(&:downcase).uniq |
|
17 |
+ |
|
16 | 18 |
stream = Twitter::JSONStream.connect( |
17 | 19 |
:path => "/1/statuses/#{(filters && filters.length > 0) ? 'filter' : 'sample'}.json#{"?track=#{filters.map {|f| CGI::escape(f) }.join(",")}" if filters && filters.length > 0}", |
18 | 20 |
:ssl => true, |
@@ -129,4 +131,4 @@ class TwitterStream |
||
129 | 131 |
end |
130 | 132 |
end |
131 | 133 |
end |
132 |
-end |
|
134 |
+end |