This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Do not count self in potential friendships (
#8014
)
pull/4/head
Eugen Rochko
5 years ago
committed by
Yamagishi Kazutoshi
parent
c8c25ea7eb
commit
47c59591e0
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/lib/potential_friendship_tracker.rb
+ 2
- 0
app/lib/potential_friendship_tracker.rb
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
]
Write
Preview
Loading…
Cancel
Save