RGJ
(Richard - Communiteq)
8 Febrero, 2026 12:32
1
Reporté un problema de UX
Moin me señaló que era duplicado
Luego cerré el tema y lo oculté
A Moin le gustó mi publicación
Vi una notificación en chino y hice clic en ella
El título del tema se cambió a chino
Tema aquí
No estoy seguro de si los puntos 2 a 5 importan, pero tal vez sí, por eso los menciono.
Similar a Another title localization issue
No estoy seguro de si es lo mismo, así que abro un nuevo informe de error.
1 me gusta
Moin
8 Febrero, 2026 12:43
2
1 me gusta
nat
(Natalie T)
9 Febrero, 2026 03:19
4
Gracias por el informe. Le echaré un vistazo.
EDITAR: Genial. Gracias a los registros ahora puedo identificar la causa.
3 Me gusta
nat
(Natalie T)
10 Febrero, 2026 14:53
5
Tenemos una solución aquí:
main ← fancy-title-write
merged 02:22PM - 10 Feb 26 UTC
Related: https://meta.discourse.org/t/yet-another-title-localization-issue/39546… 9
### bug context
tldr; `Topic#fancy_title` saves a fancy_title to db when the fancy_title is null.
This bug requires a certain incantation to trigger.
- Topic 395465 exists with `title = "Notification level button always says \"tracking\""` and
`fancy_title = NULL` in the DB
- A `TopicLocalization` exists for this topic in `zh_CN`
- `content_localization_enabled` is on
When a crawler hits `GET /t/.../395465?tl=zh_CN`, localization replacement happens on the topic, which writes the title attribute, so the state is now
- `title` = Chinese (modified)
- `fancy_title` = NULL (untouched, still what was loaded from DB)
When serializing via `TopicViewSerializer` which uses `LocalizedFancyTopicTitleMixin`, we call `topic.fancy_title`. The `topic#fancy_title` generates the fancy_title from the title value, then writes the chinese fancy title to db 😢
https://github.com/discourse/discourse/blob/e935ed63b28a30ee7ae6a7783ae05fe33edf3367/app/models/topic.rb#L532-L545
### fix
This PR fixes the issue by ensuring the fancy_title is always written along with the title, preventing the need for invoking `topic#fancy_title`.
Esta solución debería solucionar técnicamente el problema que hemos estado viendo. La pregunta más importante que no he resuelto es por qué el fancy_title del tema implicado podría ser nulo en la base de datos, ya que es el escenario que activaría el guardado de la localización.
Seguiré monitoreando esto aquí. Lo mantendré abierto hasta el fin de semana.
2 Me gusta