mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Change algorithm of follow recommendations (#28314)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -23,6 +23,7 @@ class AccountSearchService < BaseService
|
||||
query: {
|
||||
bool: {
|
||||
must: must_clauses,
|
||||
must_not: must_not_clauses,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -49,6 +50,10 @@ class AccountSearchService < BaseService
|
||||
end
|
||||
end
|
||||
|
||||
def must_not_clauses
|
||||
[]
|
||||
end
|
||||
|
||||
def should_clauses
|
||||
if @account && !@options[:following]
|
||||
[boost_following_query]
|
||||
|
||||
Reference in New Issue
Block a user