app/lib/search_query_transformer.rb: change search index default value to StatusesIndex
Some checks failed
Check i18n / check-i18n (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CodeQL / Analyze-1 (push) Has been cancelled
CodeQL / Analyze-2 (push) Has been cancelled
Check formatting / lint (push) Has been cancelled
Ruby Linting / lint (push) Has been cancelled
Historical data migration test / test (14-alpine) (push) Has been cancelled
Historical data migration test / test (15-alpine) (push) Has been cancelled
Historical data migration test / test (16-alpine) (push) Has been cancelled
Historical data migration test / test (17-alpine) (push) Has been cancelled
Ruby Testing / build (production) (push) Has been cancelled
Ruby Testing / build (test) (push) Has been cancelled
Ruby Testing / test (.ruby-version) (push) Has been cancelled
Ruby Testing / test (3.2) (push) Has been cancelled
Ruby Testing / test (3.3) (push) Has been cancelled
Ruby Testing / ImageMagick tests (push) Has been cancelled
Ruby Testing / ImageMagick tests-1 (push) Has been cancelled
Ruby Testing / ImageMagick tests-2 (push) Has been cancelled
Ruby Testing / End to End testing (push) Has been cancelled
Ruby Testing / End to End testing-1 (push) Has been cancelled
Ruby Testing / End to End testing-2 (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (push) Has been cancelled
Ruby Testing / Elastic Search integration testing-1 (push) Has been cancelled
Ruby Testing / Elastic Search integration testing-2 (push) Has been cancelled
Ruby Testing / Elastic Search integration testing-3 (push) Has been cancelled
Ruby Testing / Elastic Search integration testing-4 (push) Has been cancelled

This commit is contained in:
bgme 2026-02-22 00:19:40 +08:00
parent 9261623563
commit f88c463059

View file

@ -60,8 +60,10 @@ class SearchQueryTransformer < Parslet::Transform
[StatusesIndex]
when 'public'
[PublicStatusesIndex]
else
when 'all'
[PublicStatusesIndex, StatusesIndex]
else
[StatusesIndex]
end
end