Do not count self in potential friendships (#8014)

master
Eugen Rochko 6 years ago committed by Yamagishi Kazutoshi
parent c8c25ea7eb
commit 47c59591e0
  1. 2
      app/lib/potential_friendship_tracker.rb

@ -12,6 +12,8 @@ class PotentialFriendshipTracker
class << self
def record(account_id, target_account_id, action)
return if account_id == target_account_id
key = "interactions:#{account_id}"
weight = WEIGHTS[action]

Loading…
Cancel
Save