プロジェクト

全般

プロフィール

バグ #770 » 0001-UserStream-Service.patch

rhen ium, 2015-09-02 19:48

差分を表示:

core/plugin/streaming/streamer.rb
150 150
    defevent(:follow) do |json|
151 151
      source = MikuTwitter::ApiCallSupport::Request::Parser.user(json['source'].symbolize)
152 152
      target = MikuTwitter::ApiCallSupport::Request::Parser.user(json['target'].symbolize)
153
      if(target.me?)
153
      if target.me?(@service)
154 154
        Plugin.call(:followers_created, @service, Users.new([source]))
155
      elsif(source.me?)
155
      elsif source.me?(@service)
156 156
        Plugin.call(:followings_created, @service, Users.new([target])) end end
157 157

  
158 158
    defevent(:list_member_added) do |json|
    (1-1/1)