mirror of https://github.com/mastodon/mastodon
Do not downcase the queried tag before passing it to postgres when searching: - tags are not downcased on creation - `arel_table[:name].lower.matches(pattern)` generates an ILIKE anyway - if Postgres and Rails happen to use different case-folding rules, downcasing before query but not before insertion may mean that some tags with some casings are not searchable |
4 years ago | |
---|---|---|
.. | ||
chewy | 5 years ago | |
controllers | 4 years ago | |
helpers | 4 years ago | |
javascript | 4 years ago | |
lib | 4 years ago | |
mailers | 5 years ago | |
models | 4 years ago | |
policies | 4 years ago | |
presenters | 5 years ago | |
serializers | 4 years ago | |
services | 4 years ago | |
validators | 5 years ago | |
views | 4 years ago | |
workers | 4 years ago |