# When does it log "check personal message"?

**URL:** https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285
**Category:** Support
**Created:** [August 27, 2020, 7:27pm UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285 "2020-08-27T19:27:34Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![longhairedboy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/longhairedboy/32/191966_2.png) [@longhairedboy](https://meta.discourse.org/u/longhairedboy)
#### Post date: [August 27, 2020, 7:27pm UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/1 "2020-08-27T19:27:34Z")

</div>

Under what circumstances, exactly, does an admin or system account trigger the “check personal message” log entry?

We have found that it doesn’t only happen when an admin actually checks another user’s PMs. It also seems to happen any time a thread is split into a PM for reasons like derailment or inflammatory posts.

Under what other circumstances will this “check personal message” log entry be recorded?

We need to nail this down because there has been a lot of tension surrounding this particular log entry type on my forum.

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [August 27, 2020, 10:24pm UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/2 "2020-08-27T22:24:22Z")

</div>

> [@longhairedboy](#):
>
> Under what other circumstances will this “check personal message” log entry be recorded?

It believe it should be logged any time the content of a PM is visible to an admin that isn’t included on the PM… is that right @techAPJ?

---

<div class="post-metadata">

### Author: ![longhairedboy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/longhairedboy/32/191966_2.png) [@longhairedboy](https://meta.discourse.org/u/longhairedboy)
#### Post date: [August 28, 2020, 12:29am UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/3 "2020-08-28T00:29:45Z")

</div>

Is that why sometimes we occasionally see service accounts like ‘system’ in the log as having read a personal message? Possibly when they do cleanup of some kind?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 28, 2020, 3:01am UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/4 "2020-08-28T03:01:21Z")

</div>

When an admin converts a topic into a private message, their browser automatically loads the PM immediately after the operation succeeds.

The participants in the private message should check the timestamp of the staff action log (which I presume you’re giving to them) to see exactly which posts were visible to the admin, which in this case should be exactly the posts that were previously public.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 28, 2020, 3:02am UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/5 "2020-08-28T03:02:15Z")

</div>

> [@longhairedboy](#):
>
> Is that why sometimes we occasionally see service accounts like ‘system’ in the log as having read a personal message? Possibly when they do cleanup of some kind?

That’s weird - I can confirm this happening on meta.

* * *

This is coming from **webhooks** that fire when the first post of a topic is destroyed. The log is created **before** the webhook existence check happens, so it occurs even if no webhooks receive the topic content.

cc @vinothkannans - this was [FIX: Generate webhook payloads before destroy events (#6325) · discourse/discourse@8430ea9 · GitHub](https://github.com/discourse/discourse/commit/8430ea927e), can you think of fixes for this? TopicView.new() is what’s creating the PM viewing action.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [September 2, 2020, 12:12am UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/6 "2020-09-02T00:12:07Z")

</div>

This commit will resolve the issue

[https://github.com/discourse/discourse/commit/3b55de90e517f7081006947cc4fabbe5651a65c0](https://github.com/discourse/discourse/commit/3b55de90e517f7081006947cc4fabbe5651a65c0)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [September 9, 2020, 5:04am UTC](https://meta.discourse.org/t/when-does-it-log-check-personal-message/162285/7 "2020-09-09T05:04:31Z")

</div>

> [@awesomerobot](#):
>
> It believe it should be logged any time the content of a PM is visible to an admin that isn’t included on the PM… is that right @techAPJ?

That sounds correct to me.
