# Not Updating \`last\_posted\_at\` when sending a private message

**URL:** <https://meta.discourse.org/t/not-updating-last-posted-at-when-sending-a-private-message/121419>\
**Category:** Development\
**Created:** [6월 26, 2019, 6:13오후 UTC](https://meta.discourse.org/t/not-updating-last-posted-at-when-sending-a-private-message/121419 "2019-06-26T18:13:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Roragok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roragok/32/128471_2.png) [@Roragok](https://meta.discourse.org/u/Roragok)\
**Post date:** [6월 26, 2019, 6:13오후 UTC](https://meta.discourse.org/t/not-updating-last-posted-at-when-sending-a-private-message/121419/1 "2019-06-26T18:13:00Z")

</div>

I’m working on a plugin that will not update a users `last_posted_at` when sending a private message.

Our use case is probably unique, but people have been using it to solve the forum game we run.

We run mafia games using discourse. The mafia/scum faction would use private messages to communicate. When users last posted time did not match up with the last actual post people were finding out who the mafia/scum were. We eventually shipped the mafia chat to chatzy, but that is just annoying and we want to be back in the same forum.

I wrote this

> <https://github.com/Roragok/discourse-hidden-private-messages/blob/master/plugin.rb>

It seems to be working on my development environment, but was just wondering if there is a better way or would this cause problems? I am pretty new to making discourse plugins.

---

_[View the full topic](https://meta.discourse.org/t/not-updating-last-posted-at-when-sending-a-private-message/121419)._
