Fix transposition of search DSL calls
This commit is contained in:
parent
d3c1eaba21
commit
b831c3897d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class SearchService < BaseService
|
||||||
def perform_statuses_search!
|
def perform_statuses_search!
|
||||||
statuses_index = StatusesIndex.filter(term: { searchable_by: @account.id })
|
statuses_index = StatusesIndex.filter(term: { searchable_by: @account.id })
|
||||||
if SEARCH_ALL_VISIBLE_TOOTS
|
if SEARCH_ALL_VISIBLE_TOOTS
|
||||||
statuses_index = statuses_index.or.filter(term: { searchable_by_anyone: true })
|
statuses_index = statuses_index.filter.or(term: { searchable_by_anyone: true })
|
||||||
end
|
end
|
||||||
definition = parsed_query.apply(statuses_index)
|
definition = parsed_query.apply(statuses_index)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue