aboutsummaryrefslogtreecommitdiffstats
path: root/collector
diff options
context:
space:
mode:
Diffstat (limited to 'collector')
-rw-r--r--collector/stream.rb8
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],