diff options
author | Rhenium <rhenium@rhe.jp> | 2014-03-11 14:39:03 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-26 14:15:15 +0900 |
commit | aeef45c44bca3663019da7898264b3f2f10523ea (patch) | |
tree | d54110f034b803b094d010e65b6a8c0bfb8cf204 | |
parent | 0148d5134606c296c4d17ed9a3f89eae255392c2 (diff) | |
download | mikutter-aeef45c44bca3663019da7898264b3f2f10523ea.tar.gz |
user_update イベントに対応
-rw-r--r-- | core/plugin/streaming/streamer.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/plugin/streaming/streamer.rb b/core/plugin/streaming/streamer.rb index fa3e1f1c..b4e99660 100644 --- a/core/plugin/streaming/streamer.rb +++ b/core/plugin/streaming/streamer.rb @@ -178,5 +178,11 @@ module ::Plugin::Streaming list.remove_member(target_user) Plugin.call(:list_member_removed, @service, target_user, list, source_user) end + defevent(:user_update) do |json| + source = MikuTwitter::ApiCallSupport::Request::Parser.user(json['source'].symbolize) + target = MikuTwitter::ApiCallSupport::Request::Parser.user(json['target'].symbolize) + Plugin.activity(:user_update, "update_update: #{source.idname}", + description: YAML.dump(json['source'])) end + end end |