diff options
author | rhenium <re4k@re4k.info> | 2013-05-19 22:26:21 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-19 22:26:21 +0900 |
commit | d38860610499f3ca84c8417bb9855e2b131650b5 (patch) | |
tree | 56a73db0c5a82d7ded43ac4a29d8e683a1ff767e /collector | |
parent | a112e1317a957e9bb26aaad7817f06668bef51ab (diff) | |
download | aclog-d38860610499f3ca84c8417bb9855e2b131650b5.tar.gz |
fix
Diffstat (limited to 'collector')
-rw-r--r-- | collector/stream.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/collector/stream.rb b/collector/stream.rb index 5b3917e..874cdad 100644 --- a/collector/stream.rb +++ b/collector/stream.rb @@ -61,9 +61,9 @@ module Aclog # event case hash[:event] when "favorite" - send_favorite(hash[:source], hash[:target_object]) + send_favorite(hash[:source], hash[:target], hash[:target_object]) when "unfavorite" - send_unfavorite(hash[:source], hash[:target_object]) + send_unfavorite(hash[:source], hash[:target], hash[:target_object]) end elsif hash[:user] # tweet @@ -150,7 +150,7 @@ module Aclog log(:debug, "Sent tweet", status[:id]) end - def send_favorite(source, target_object) + def send_favorite(source, target, target_object) send_tweet(target_object) send_user(source) @callback.call( @@ -162,7 +162,7 @@ module Aclog log(:debug, "Sent favorite", source[:id] => target_object[:id]) end - def send_unfavorite(source, target_object) + def send_unfavorite(source, target, target_object) @callback.call( type: "unfavorite", tweet_id: target_object[:id], |