Add emoji reactions to trends

This commit is contained in:
KMY 2023-04-10 14:08:53 +09:00
parent bc48000dce
commit e6fcf1543b
8 changed files with 33 additions and 14 deletions

View file

@ -53,7 +53,7 @@ class SearchService < BaseService
privacy_definition = privacy_definition.or(StatusesIndex.filter(term: { searchability: 'direct' }).filter(term: { account_id: @account.id }).min_score(MIN_SCORE))
end
definition = parsed_query.apply(StatusesIndex.min_score(MIN_SCORE)).order(id: :desc)
definition = parsed_query.apply(StatusesIndex.min_score(MIN_SCORE).track_scores(true)).order(id: :desc)
definition = definition.filter(term: { account_id: @options[:account_id] }) if @options[:account_id].present?
definition = definition.and(privacy_definition)