redis.zincrby(key, weight, target_account_id)
redis.zremrangebyrank(key, 0, -MAX_ITEMS)
redis.expire(key, EXPIRE_AFTER)
-
- ActivityTracker.increment('activity:interactions')
end
def remove(account_id, target_account_id)
end
def bump_potential_friendship(account, status)
+ ActivityTracker.increment('activity:interactions')
return if account.following?(status.account_id)
PotentialFriendshipTracker.record(account.id, status.account_id, :favourite)
end
end
def bump_potential_friendship(account, status)
- return if !status.reply? || account.following?(status.in_reply_to_account_id)
+ return if !status.reply? || account.id == status.in_reply_to_account_id
+ ActivityTracker.increment('activity:interactions')
+ return if account.following?(status.in_reply_to_account_id)
PotentialFriendshipTracker.record(account.id, status.in_reply_to_account_id, :reply)
end
end
end
def bump_potential_friendship(account, reblog)
+ ActivityTracker.increment('activity:interactions')
return if account.following?(reblog.reblog.account_id)
PotentialFriendshipTracker.record(account.id, reblog.reblog.account_id, :reblog)
end