Do not count self in potential friendships (#8014)

This commit is contained in:
Eugen Rochko authored and Yamagishi Kazutoshi committed 2018-07-14 10:44:23 +09:00
1 parent c8c25ea7eb
commit 47c59591e0
1 file changed
+2
+2
View File
@@ -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]