aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-04-15 01:27:07 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-09-07 20:06:28 +0900
commitcbe93fc8cef3189c7a9ad84446144c8cb5ee1cd4 (patch)
tree49b8f2e67f2bb699df81b2fbe68dd6b004a56d89
parent87bbb22d4daa248432062cf61c7f2f37295c8222 (diff)
downloadmikutter-cbe93fc8cef3189c7a9ad84446144c8cb5ee1cd4.tar.gz
list 系イベントがホーム TL に現れないようにする
-rw-r--r--core/plugin/streaming/streamer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/plugin/streaming/streamer.rb b/core/plugin/streaming/streamer.rb
index b4e99660..20b56505 100644
--- a/core/plugin/streaming/streamer.rb
+++ b/core/plugin/streaming/streamer.rb
@@ -107,8 +107,8 @@ module ::Plugin::Streaming
# よくわからないので見なかったことにする
when !json.has_key?('event')
event_update(json)
- when Mopt.debug
- Plugin.activity :system, YAML.dump(json)
+ when json['event'].to_s =~ /^list_/
+ Plugin.activity(json['event'].to_sym, "unknown list event", description: YAML.dump(json))
else
if Mopt.debug
Plugin.activity :system, "unsupported event:\n" + YAML.dump(json) end end end