# 恢复帖子不会生成日志条目

**URL:** https://meta.discourse.org/t/undeleting-a-post-does-not-create-a-log-entry/403423
**Category:** UX
**Created:** [2026年五月20日 11:05 UTC](https://meta.discourse.org/t/undeleting-a-post-does-not-create-a-log-entry/403423 "2026-05-20T11:05:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年五月20日 11:05 UTC](https://meta.discourse.org/t/undeleting-a-post-does-not-create-a-log-entry/403423/1 "2026-05-20T11:05:40Z")

</div>

删除主题 → 创建工作人员操作日志条目“删除主题”  
删除帖子 → 创建工作人员操作日志条目“删除帖子”

恢复主题 → 创建工作人员操作日志条目“恢复主题”  
恢复帖子 → 不创建工作人员操作日志条目

因此，如果帖子被恢复，您需要查阅系统日志文件以找出是谁执行了该操作。

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [2026年五月22日 02:39 UTC](https://meta.discourse.org/t/undeleting-a-post-does-not-create-a-log-entry/403423/2 "2026-05-22T02:39:11Z")

</div>

好观点，@RGJ。看来这之前从未被加入。

我已在 GitHub 上提交了一个 PR，等待 Discourse 工作人员的审查、批准和合并。🙂

> <https://github.com/discourse/discourse/pull/40238>
>
> \## What is this change?
> 
> Discourse currently logs staff actions for:
> 
> \- Dele…ting topics.
> \- Deleting posts.
> \- Recovering topics.
> 
> But is missing the "last" action of:
> 
> \- Recovering posts.
> 
> This PR adds a new user history type "recover post" and wires that up through the post destroyer.
> 
> \## Manual verification
> 
> \<img width="918" height="200" alt="Screenshot 2026-05-22 at 10 34 53 AM" src="https://github.com/user-attachments/assets/829a07cf-7c84-4abe-a145-96917553d6d2" /\>
