From 8a8cae1b077046486277337257318c9d297f670c Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Wed, 2 Sep 2015 19:38:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A4=87=E6=95=B0=E3=82=A2=E3=82=AB?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=88=E3=82=92=E4=BD=BF=E3=81=A3=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=82=8B=E3=81=A8=E3=81=8D=E5=85=A8=E3=81=A6=E3=81=AE?= =?UTF-8?q?=20UserStream=20=E3=81=8C=E8=87=AA=E5=88=86=E3=81=AE=20Service?= =?UTF-8?q?=20=E3=81=AB=E9=96=A2=E4=BF=82=E3=81=AA=E3=81=84=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AD=E3=83=BC=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=AB=E5=8F=8D=E5=BF=9C=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/streaming/streamer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/plugin/streaming/streamer.rb b/core/plugin/streaming/streamer.rb index 741e4f9..184edeb 100644 --- a/core/plugin/streaming/streamer.rb +++ b/core/plugin/streaming/streamer.rb @@ -150,9 +150,9 @@ module ::Plugin::Streaming defevent(:follow) do |json| source = MikuTwitter::ApiCallSupport::Request::Parser.user(json['source'].symbolize) target = MikuTwitter::ApiCallSupport::Request::Parser.user(json['target'].symbolize) - if(target.me?) + if target.me?(@service) Plugin.call(:followers_created, @service, Users.new([source])) - elsif(source.me?) + elsif source.me?(@service) Plugin.call(:followings_created, @service, Users.new([target])) end end defevent(:list_member_added) do |json| -- 2.5.1