# 如果修订只包含标签编辑，则无法撤销

**URL:** https://meta.discourse.org/t/cannot-undo-a-revision-if-it-only-includes-tag-edits/366439
**Category:** Bug
**Tags:** pr-welcome
**Created:** [2025年五月16日 12:32 UTC](https://meta.discourse.org/t/cannot-undo-a-revision-if-it-only-includes-tag-edits/366439 "2025-05-16T12:32:01Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2025年五月19日 07:27 UTC](https://meta.discourse.org/t/cannot-undo-a-revision-if-it-only-includes-tag-edits/366439/3 "2025-05-19T07:27:52Z")

</div>

我能重现 ✋

我的步骤：

- 将“编辑宽限期”减少到 0 以帮助加快测试（可选）
- 创建一个带有某些标签的主题并发布
- 编辑主题以删除标签并保存
- 打开编辑历史记录并尝试恢复以重新添加标签

预期：帖子修订恢复将正常进行，并将主题恢复到包含标签的先前状态

实际：错误消息阻止恢复

 ![The image shows a user interface for editing revisions in TinyMCE, where a message displays that the current version is unchanged and prompts for an OK action. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/c/2/1c2e593af9226d1fe5dfadc6da80b6e96dbe5eff.jpeg)

* * *

> [@kuba-orlik](#):
>
> 我注意到其中一个修订错误地删除了应该附加到主题的标签。

不过，如果期望的是你可以回溯到删除标签的更早的编辑历史记录，并且你只想恢复标签的删除而不恢复帖子正文的任何后续编辑，那么这不应该起作用，因为编辑历史记录（包括标签编辑）是按顺序进行的。在这种情况下，恢复应该会重新添加标签，并且还会删除帖子正文的任何后续编辑。

---

_[View the full topic](https://meta.discourse.org/t/cannot-undo-a-revision-if-it-only-includes-tag-edits/366439)._
