Created
May 1, 2018 22:04
-
-
Save toshia/c5c03f3be46f5b49e04d67401bcc343f to your computer and use it in GitHub Desktop.
filter stream接続時にstreaming API用のパーサを利用してなかった
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/plugin/streaming/filter.rb b/core/plugin/streaming/filter.rb | |
index 811d0181..7c28f773 100644 | |
--- a/core/plugin/streaming/filter.rb | |
+++ b/core/plugin/streaming/filter.rb | |
@@ -48,7 +48,7 @@ Plugin.create :streaming do | |
@success_flag = true end | |
parsed = JSON.parse(json).symbolize | |
if not parsed[:retweeted_status] | |
- MikuTwitter::ApiCallSupport::Request::Parser.message(parsed) rescue nil end | |
+ MikuTwitter::ApiCallSupport::Request::Parser.streaming_message(parsed) rescue nil end | |
end } | |
raise r if r.is_a? Exception | |
notice "filter stream: disconnected #{r}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment