forked from e621ng/e621ng
[PostVersions] Downcase tag query
Allows searches like `Hi_res` to function
This commit is contained in:
parent
ae96db548e
commit
1b982f64e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user