mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 09:14:36 +08:00
9bf522f227
- By default, behaviour is not changed: tags are made lowercase upon creation and edit. - If force_lowercase_tags is disabled, then mixed case tags are allowed. - Tags must remain case-insensitively unique. This is enforced by ActiveRecord and Postgres. - A migration is added to provide a `UNIQUE` index on `lower(name)`. Migration includes a safety to correct any current tags that do not meet the criteria. - A `where_name` scope is added to `models/tag.rb`, to allow easy case-insensitive lookups. This is used instead of `Tag.where(name: "blah")`. - URLs remain lowercase. Mixed case URLs are functional, but have the lowercase equivalent as the canonical. |
||
---|---|---|
.. | ||
benchmarks | ||
bulk_import | ||
demon_test | ||
import_scripts | ||
.gitignore | ||
alice.txt | ||
bench.rb | ||
boot_mem.rb | ||
check_forking.rb | ||
compile_hbs.rb | ||
diff_heaps.rb | ||
discourse | ||
docker_test.rb | ||
downsize_uploads.rb | ||
measure.rb | ||
memory-analysis | ||
memstats.rb | ||
micro_bench.rb | ||
mwrap_sidekiq | ||
osx_dev | ||
plugin-translations.rb | ||
profile_db_generator.rb | ||
pull_translations.rb | ||
rails | ||
redis_memory.rb | ||
require_profiler.rb | ||
test_email_settings.rb | ||
test_hbs_compiler.rb | ||
test_mem.rb | ||
test_pretty_text.rb | ||
theme-watcher | ||
user_simulator.rb | ||
version_bump.rb |