1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 14:58:21 +09:00

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

This commit is contained in:
Claire 2023-08-01 14:52:32 +02:00 committed by GitHub
parent fd284311e7
commit 6c39125761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
},
},