[PostVersions] Downcase tag query

Allows searches like `Hi_res` to function
This commit is contained in:
Earlopain 2024-01-21 17:56:47 +01:00
parent ae96db548e
commit 1b982f64e1
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -26,7 +26,7 @@ class PostVersion < ApplicationRecord
def tag_list(field, input, target)
if input.present?
target += TagQuery.scan(input).map { |x| { term: { field => x } } }
target += TagQuery.scan(input.downcase).map { |x| { term: { field => x } } }
end
target
end