I had a go at this.
I believe OP was talking about a plugin for phpBB. I used the same plugin on my forum before we changed over to Discourse a couple of weeks back. A few of the members mentioned they missed the flags, so last Friday I decided to jump in and have a go at a plugin for Discourse.
In its current state, it’s fairy ‘hacky’ and there’s plenty of room for improvement. I’d appreciate some help with the code if anyone is willing to offer their assistance!