I still have to finish some small details but I have a working plugin now at GitHub - communiteq/discourse-private-replies · GitHub
After installing and enabling the plugin the topic owner (and staff) will get an extra button at the bottom of each topic called Private Replies.
The button can be used to toggle ‘private replies’ mode for the topic.
When private replies mode is enabled,
- topic owners can still see all posts
- all other users will only see posts made by the topic owner, staff, and themselves.
Such a topic can be recognized by a banner on the top of the topic:

When the topic owner decides to make the posts public, they can use the same button on the bottom of the topic (now called ‘Public Replies’) to disable the Private Replies mode. The banner will disappear and all posts will be visible to everyone (honoring category security of course).
The plugin disables the following ways to retrieve the post contents:
- topic view (i.e. the regular way of looking at posts)
- user profile - activity
- search
- raw (
/raw/topic_id/post_id)
Disclaimer 1:
The plugin does not completely hide who posted in the topic. The user avatars in the topic list are untouched and the topics are also visible in the user profile - summary. However, both of these do not reveal the contents of the post.
Disclaimer 2:
I don’t know if there are ways to retrieve post content that I might have overlooked. (I still have to test whether digests will reveal stuff, for instance). My SO is going to test this in the course of the upcoming weeks and I have no doubt that her students will be able to find some smart loopholes. I will try to close those as soon as I find out about them. Hints and tips are welcome!
I’ll make a plugin category post and a good README.md later this week. In the meanwhile, I’d love your feedback!
