From b831c3897dc483559fe0d1d6445d0cd7024dbcf7 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Mon, 28 Nov 2022 20:06:19 -0800 Subject: [PATCH] Fix transposition of search DSL calls --- app/services/search_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/search_service.rb b/app/services/search_service.rb index f76ebceb61..7f69557f38 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -40,7 +40,7 @@ class SearchService < BaseService def perform_statuses_search! statuses_index = StatusesIndex.filter(term: { searchable_by: @account.id }) 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 definition = parsed_query.apply(statuses_index)