Skip to content

Instantly share code, notes, and snippets.

@toshia
Created May 1, 2018 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshia/c5c03f3be46f5b49e04d67401bcc343f to your computer and use it in GitHub Desktop.
Save toshia/c5c03f3be46f5b49e04d67401bcc343f to your computer and use it in GitHub Desktop.
filter stream接続時にstreaming API用のパーサを利用してなかった
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