发送私信时未更新 `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.

对于那些不需要该功能的社区,直接从界面中移除“最后发布时间”不是更简单吗?

我建议你放手去做,看看会发生什么。几周后在这里反馈结果。

我不确定完全移除它会有什么后果。此外,这似乎是一个不错的指标,有助于了解谁处于活跃状态等。

只是想汇报一下。已经使用两周了,没有发现任何负面影响。