プライベートメッセージ送信時に `last_posted_at` が更新されない問題

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

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.

Does this look ok @sam?

The hack should be OK. I guess you are asking “Should core stop updating last posted at, when you post on messages”

My answer is … maybe… we would carefully work through a change like this. Probably take a day or 2 to get it perfect.

There are concerns around huge amount of testing that depends on it being updated, various processes like time stamp resetting that would have to account for this, plugins, and so on.

コミュニティで必要ないなら、インターフェースから「最終投稿日時」を完全に削除した方がずっとシンプルになりませんか?

ぜひ試してみて、結果を教えてください。数週間後にこちらで報告をお願いします。

完全に削除した場合の影響がわからなかったためです。また、誰がアクティブかなどを確認できる便利な指標のようです。

ただ報告しておこうと思いました。2 週間使っていますが、悪影響は見ていません。