Always-Anonymous Categories Plugin

I had a request from a co-worker to find a way to offer “anonymous Q&A” to our division’s employees. At first blush, Discourse seemed like the wrong tool for the job: anonymous posting seemed anathema to the whole point of fostering open, friendly, but lively discussions. Discourse does have built-in support for anonymous posting, but it’s a global setting. What we needed was a way to restrict anonymous posting to a single category (or a select subset of them). Even better, make anonymous posting automatic, so that users don’t have to think about it (and can’t get it wrong).

Thus was born discourse-anonymous-categories.

This plugin lets you choose individual categories for “always-anonymous” behavior, where all posts and replies automatically use the anonymous pseudonym for the user instead of their actual identity. The user doesn’t have to opt-in, and more importantly, doesn’t need to remember to opt-out when they are done posting.

Here’s what that looks like:

  1. After the plugin is installed, turn on the global setting to enable “always-anonymous” categories:

  2. Then, pick a category (or create a new one) for which you want “always-anonymous” behavior, and turn on the “Force posts to be anonymous in this cateory” setting:

  3. Now, when anyone posts (note that current user is “E”):

  4. They will actually get anonymized:

  5. … like this (note that post is as “anonymous”/“A”):


This plays very nicely with recent versions of discourse-feature-voting, which can be used to anonymously vote on topics. (The votes themselves aren’t anonymous, but the identities of the voters are not currently surfaced through the UI, unlike “Likes”.)

「いいね!」 30

and whether non-registered users to post messages in this category?

Is this plugin still working (it hasn’t been updated since two years)?

「いいね!」 2

Somehow I’m having a hard time making it work on my local environment. I’m gonna do some digging and share back here.

Yes, it still works. I had to delete my tmp folder in order to make it work but I think this is a problem with my local dev installation only (not using docker).

「いいね!」 2

Sadly, the purpose for which this was created no longer exists, so I haven’t given the plugin any love for the last several years. If anyone wants to take over maintenance, I’d be happy to let them!

「いいね!」 6

I have a use for this plugin. How do I get it ‘looked after again’? Non-tech person asking, I’m on Communiteq (formerly DiscourseHosting). @michaeld @RGJ

Do you have a budget for this? If so, posting in marketplace is most likely the best approach :slight_smile:

「いいね!」 6

Are you sure that the plugin is not working correctly anymore?

When I read the posts above it just says it needs a new maintainer but Daniel says “Yes, it still works”

「いいね!」 2

Yes, I agree the post says it needs a new maintainer. I guess that’s what I’m wondering if someone would do. Is that something that comes with my Pro hosting package?

I am runing it on v2.0.0.beta10 +111 and looks like it is working.
I do not have some issues whit my instace

「いいね!」 2

参考情報:Docker バージョン 2.4 において、プラグインを追加すると、匿名としてフラグが付けられたカテゴリへの投稿時に 500 サーバーエラーが発生します。

@JaredReisinger さんが、調査を待っている間、これを #plugin:broken-plugin に移動させました。2.4 で匿名アカウントの処理方法を再実装したため、プラグインが壊れた可能性があります。

「いいね!」 5

上記の通り、私と@michaeldは、このプラグインのメンテナンスを引き継ぐことを喜んでおります。

「いいね!」 6

修正のETAはわかりませんか? :wink:

多分9月のどこかでしょう…

「いいね!」 1

@sam の指摘の通り、匿名ユーザーに関する新しい作業がプラグインを壊してしまいました。私の会社の製品の一つで必要になるため、今この件を調査しています。

製品で発生するエラーは以下の通りです:

NoMethodError (undefined method `create_shadow' for AnonymousShadowCreator:Class) /var/www/discourse/plugins/discourse-anonymous-categories/plugin.rb:76:in `block (2 levels) in activate!'

この行から発生しています:

修正を試みて、まもなくここで更新を投稿します。

「いいね!」 4

これが私の簡易的な修正です: Updating plugin to work with Discourse v2.4.0.beta2 · danielvlopes/discourse-anonymous-categories@08dda70 · GitHub

Discourse が匿名ユーザーに対してより良いサポートを提供するようになったので、ユーザーのカスタムフィールド部分も削除できると思いますが、今回はこの変更をシンプルに保ちます。

「いいね!」 4

@JaredReisinger さんはまだこのプラグインをメンテナンスされていますか?もしそうでなければ、@Daniel_Lopes さんに OP に変更してもらって、ブランチを指すようにしてもらえれば、#plugin:broken-plugin からこれをリリースできるかもしれません。

「いいね!」 4

申し訳ありませんが、私は専門家ではないため、うまく動作させることができません。いくつかの指示文を書いていただけないでしょうか?ありがとうございます。