aboutsummaryrefslogtreecommitdiffstats
path: root/collector
diff options
context:
space:
mode:
authorrhenium <re4k@re4k.info>2013-05-19 18:09:03 +0900
committerrhenium <re4k@re4k.info>2013-05-19 18:09:03 +0900
commita112e1317a957e9bb26aaad7817f06668bef51ab (patch)
treee0ff31f6c8a0fe85a720a440fd5519cc0767858b /collector
parent197f1e9a8edf3fb3f797bca0247e8abbd7c8111b (diff)
downloadaclog-a112e1317a957e9bb26aaad7817f06668bef51ab.tar.gz
delete -> delete, unfavorite
Diffstat (limited to 'collector')
-rw-r--r--collector/stream.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/collector/stream.rb b/collector/stream.rb
index 78afca7..5b3917e 100644
--- a/collector/stream.rb
+++ b/collector/stream.rb
@@ -156,6 +156,7 @@ module Aclog
@callback.call(
type: "favorite",
tweet_id: target_object[:id],
+ target_user_id: target[:id],
user_id: source[:id]
)
log(:debug, "Sent favorite", source[:id] => target_object[:id])
@@ -163,8 +164,9 @@ module Aclog
def send_unfavorite(source, target_object)
@callback.call(
- type: "delete",
+ type: "unfavorite",
tweet_id: target_object[:id],
+ target_user_id: target[:id],
user_id: source[:id]
)
log(:debug, "Sent unfavorite", source[:id] => target_object[:id])
@@ -177,6 +179,7 @@ module Aclog
type: "retweet",
id: status[:id],
tweet_id: status[:retweeted_status][:id],
+ target_user_id: status[:retweeted_status][:user][:id],
user_id: status[:user][:id]
)
log(:debug, "Sent retweet", status[:user][:id] => status[:retweeted_status][:id])