Do not count self in potential friendships (#8014)
This commit is contained in:
parent
dab950626f
commit
28c301e41c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue