mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:55:24 +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. |
||
---|---|---|
.. | ||
admin | ||
discourse | ||
discourse-common | ||
docs | ||
ember-addons | ||
locales | ||
pretty-text | ||
select-kit | ||
wizard | ||
admin.js.erb | ||
application.js | ||
deprecated.js | ||
discourse-loader.js | ||
discourse-objects.js | ||
discourse.js.es6 | ||
ember_include.js.erb | ||
ember_jquery.js | ||
ember-shim.js | ||
env.js | ||
google-tag-manager.js | ||
google-universal-analytics.js | ||
main_include_admin.js | ||
markdown-it-bundle.js | ||
plugin-third-party.js.erb | ||
plugin.js.erb | ||
polyfills.js | ||
preload-application-data.js | ||
preload-store.js.es6 | ||
pretty-text-bundle.js | ||
service-worker.js.erb | ||
template_include.js.erb | ||
vendor.js | ||
wizard-application.js | ||
wizard-vendor.js |