summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-08-01 14:52:32 +0200
committerGitHub <noreply@github.com>2023-08-01 14:52:32 +0200
commit6c39125761faf756f56a4183b2794c85c9a37b74 (patch)
tree6cfc4696fdc9cced46ba912e33add688af35716d /app
parentfd284311e79854d6bc2901a9d9363ba9e7e00513 (diff)
Change /api/v1/peers/search to be case-insensitive when using Elasticsearch (#26268)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/v1/peers/search_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/peers/search_controller.rb b/app/controllers/api/v1/peers/search_controller.rb
index 50a342cde30..bd72b985f67 100644
--- a/app/controllers/api/v1/peers/search_controller.rb
+++ b/app/controllers/api/v1/peers/search_controller.rb
@@ -27,7 +27,7 @@ class Api::V1::Peers::SearchController < Api::BaseController
@domains = InstancesIndex.query(function_score: {
query: {
prefix: {
- domain: params[:q],
+ domain: TagManager.instance.normalize_domain(params[:q].strip),
},
},