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.