Change /api/v1/peers/search to be case-insensitive when using Elasticsearch (#26268)

lolsob-rspec
Claire 2023-08-01 14:52:32 +02:00 committed by GitHub
parent 266bbfc884
commit 32f9b3d3af
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Api::V1::Peers::SearchController < Api::BaseController
@domains = InstancesIndex.query(function_score: { @domains = InstancesIndex.query(function_score: {
query: { query: {
prefix: { prefix: {
domain: params[:q], domain: TagManager.instance.normalize_domain(params[:q].strip),
}, },
}, },