Fix incomplete name change

This commit is contained in:
Vyr Cossont 2022-11-28 23:26:59 -08:00
parent 3fa72fd56c
commit 494d98c3a8

View file

@ -38,7 +38,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_PUBLIC_STATUSES
statuses_index = statuses_index.filter.or(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)