mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 00:37:22 +08:00
When content localization is enabled and a user is on a non-default
locale, selecting a tag in the composer or topic editor sends the
localized display name (e.g. "戦略") instead of the original name
("strategy"). The backend can't find a tag with the localized name, so
tags are silently dropped (topci create) OR duplicated as new tags with
the localized name (topic edit).
This affects two flows:
- Topic creation: localized tag name sent as identifier, tag not found
or created as a duplicate
- Topic editing (category + tag change): localized names hit PostRevisor
→ validate_category_tags → `Tag.where(name:)`, validation fails
Related:
- /t/399612
- https://meta.discourse.org/t/using-translated-tags/399591
|
||
|---|---|---|
| .. | ||
| category-edit-test.js | ||
| composer-test.js | ||
| notifications-test.js | ||
| post-voting-test.js | ||