aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-04-15 01:27:07 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-10-26 14:15:15 +0900
commit6c7abcd1a6329e23971b8547de509774de3f33a3 (patch)
tree8750ff2c368e185c3a5352b14a6a27338c7d04d9
parentaeef45c44bca3663019da7898264b3f2f10523ea (diff)
downloadmikutter-6c7abcd1a6329e23971b8547de509774de3f33a3.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