diff options
author | Rhenium <rhenium@rhe.jp> | 2014-03-11 14:39:03 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-09-07 20:06:28 +0900 |
commit | 87bbb22d4daa248432062cf61c7f2f37295c8222 (patch) | |
tree | 19a600ec01578f0192435b894c3ceba1f52a8e15 | |
parent | 6528a30ba1a491ce0ecc859db1963e4fbc2e5798 (diff) | |
download | mikutter-87bbb22d4daa248432062cf61c7f2f37295c8222.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 |