mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-01 07:47:42 -05:00
Remove unneeded spaces surrounding tsquery term
This commit is contained in:
@@ -530,9 +530,7 @@ class Account < ApplicationRecord
|
||||
terms = unsanitized_terms.gsub(DISALLOWED_TSQUERY_CHARACTERS, ' ')
|
||||
|
||||
# The final ":*" is for prefix search.
|
||||
# Not sure what surrounding spaces are for, but they were there in the
|
||||
# original code.
|
||||
"' #{terms} ':*"
|
||||
"'#{terms}':*"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user