Published or dismissed drafts seem to re-appear randomly

AI 生成的摘要

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.

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.

1 个赞

One draft new topic, but one draft reply for every topic.

6 个赞

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.

2 个赞

我想我最近已经修复了这个问题。

我们以前有“创建主题”草稿键、“回复为新主题”草稿键和“新主题”草稿键。

这导致了各种混乱。现在内容已经标准化了。

4 个赞

那么我们现在有什么?只是一个普通的草稿键吗?

我们拥有:

  1. “新主题”的唯一键
  2. “新消息”的唯一键
  3. 每个“主题”的唯一键(涵盖:作为新主题回复、作为私信回复、编辑帖子、回复主题)
6 个赞

此主题已在 3 天后自动关闭,不再接受新回复。