mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-04 10:16:24 +01:00
parent
c82a2358bd
commit
49092945ab
@ -29,7 +29,9 @@ class SearchService < BaseService
|
|||||||
def perform_statuses_search!
|
def perform_statuses_search!
|
||||||
statuses = StatusesIndex.filter(term: { searchable_by: account.id })
|
statuses = StatusesIndex.filter(term: { searchable_by: account.id })
|
||||||
.query(multi_match: { type: 'most_fields', query: query, operator: 'and', fields: %w(text text.stemmed) })
|
.query(multi_match: { type: 'most_fields', query: query, operator: 'and', fields: %w(text text.stemmed) })
|
||||||
.limit(limit).objects
|
.limit(limit)
|
||||||
|
.objects
|
||||||
|
.compact
|
||||||
|
|
||||||
statuses.reject { |status| StatusFilter.new(status, account).filtered? }
|
statuses.reject { |status| StatusFilter.new(status, account).filtered? }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user