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