I understand that currently discourse can only handle one unpublished draft and that this draft is shared across devices, right? It works fine and I love it, but every now and then, when I start a new reply to a topic, the editor contains an old draft of some previous reply which I either dismissed or which I already published (possibly from another device). So it looks like drafts are also stored locally but not deleted under certain circumstances such as when the draft is published from another device.
AI-generated summary
Users discuss an issue where published or dismissed drafts reappear unexpectedly when starting a new reply, particularly across devices. tophee reports that old drafts, even those already published or dismissed, sometimes appear in the editor. codinghorror clarifies that there’s one draft per topic for replies, and elijah confirms a similar experience. sam acknowledges the issue and explains that recent changes have normalized draft keys—now using unique keys for new topics, new messages, and per-topic drafts (covering replies, edits, and PMs)—to resolve confusion and likely fix the problem sam.
One draft new topic, but one draft reply for every topic.
Earlier this week, I started a reply in one topic, then navigated to another topic and posted it there. When I returned to the first topic (on a different device), my “draft” post was still there. That sounds like what Christoph is describing.
Is there a specific repro?
Not sure. I’ve only had it happen once, and attempting to reproduce it now on try, I’m not seeing it.
Думаю, я недавно это исправил.
У нас были ключи черновиков «создать тему», «ответ как новая тема» и «новая тема».
Это вызывало всякую путаницу. Теперь всё нормализовано.
Так что же у нас есть теперь? Просто обычный ключ черновика?
У нас есть:
- Уникальный ключ для «новых тем»
- Уникальный ключ для «нового сообщения»
- Уникальный ключ для каждой «темы» (охватывает: ответ как новая тема, ответ как личное сообщение, редактирование поста, ответ на тему)
Эта тема была автоматически закрыта через 3 дня. Новые ответы больше не принимаются.