Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Make custom emoji domains case insensitive #9351 #9474
Make custom emoji domains case insensitive to fix #9531
Postgres supports CITEXT, but migrating the database from TEXT to CITEXT could require a whole table lock or an interim migration with dual writes.
Instead, it should be fine to migrate existing rows to lowercase one-by-one, input only lowercase input in future, and do comparisons against lowercase input.
This is my first pull request for mastodon and I haven't worked in Ruby in a long time - please let me know if I'm missing something!