# 用户自行移除了他们自己私信（PM）然后管理员就无法看到他们的私信历史记录了

**URL:** <https://meta.discourse.org/t/users-removed-themselves-from-private-messages-pm-and-then-the-mods-cant-see-their-pm-history/254822>\
**Category:** Bug\
**Tags:** moderation\
**Created:** [2023年二月11日 02:41 UTC](https://meta.discourse.org/t/users-removed-themselves-from-private-messages-pm-and-then-the-mods-cant-see-their-pm-history/254822 "2023-02-11T02:41:48Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年三月2日 15:02 UTC](https://meta.discourse.org/t/users-removed-themselves-from-private-messages-pm-and-then-the-mods-cant-see-their-pm-history/254822/10 "2023-03-02T15:02:03Z")

</div>

您好 @physixfan！

如果所有用户都已退出，您仍然无法通过界面跟踪私人消息（并且不在路线图上）。

不过，[此 bug 已修复](https://github.com/discourse/discourse/commit/96d03ea9c0500fc715e8b6f9713488d4d8548aa6)，用户退出私人消息会创建小的操作帖子：

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/c/3fc0e0ef7d2e1a05ccfa16a0e4649680d4f83378.png)

请记住更新 Discourse 以应用修复程序，并在您仍需要跟踪这些操作时安装数据探索器。

有效的 SQL 查询将是：

```sql
SELECT user_id, topic_id
FROM posts
WHERE action_code = 'user_left'
ORDER BY id DESC
LIMIT 10

```

---

_[View the full topic](https://meta.discourse.org/t/users-removed-themselves-from-private-messages-pm-and-then-the-mods-cant-see-their-pm-history/254822)._
