Merge remote-tracking branch 'parent/main' into upstream-20231221
This commit is contained in:
commit
a6b57e3890
154 changed files with 7762 additions and 1748 deletions
|
@ -23,6 +23,7 @@ class AccountSearchService < BaseService
|
|||
query: {
|
||||
bool: {
|
||||
must: must_clauses,
|
||||
must_not: must_not_clauses,
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -51,6 +52,10 @@ class AccountSearchService < BaseService
|
|||
end
|
||||
end
|
||||
|
||||
def must_not_clauses
|
||||
[]
|
||||
end
|
||||
|
||||
def should_clauses
|
||||
if @account && !@options[:following] && !@options[:follower]
|
||||
[boost_following_query]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue