]> cat aescling's git repositories - mastodon.git/commitdiff
Fix unreviewed hashtag not being found by exact case-insensitive match (#11976)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 27 Sep 2019 17:40:26 +0000 (19:40 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2019 17:40:26 +0000 (19:40 +0200)
app/services/tag_search_service.rb

index 5cb0eea7a2f46134747110b7008b219a09143f72..47b0e876e8981bfeaf9c8149fe96d6373471ab6c 100644 (file)
@@ -62,9 +62,9 @@ class TagSearchService < BaseService
           },
 
           {
-            term: {
+            match: {
               name: {
-                value: @query,
+                query: @query,
               },
             },
           },