תוסף קטגוריות אנונימיות תמידי

I personally find that to be a feature, even though it is not intended to be one, as there is a reason it’s anonymous category. But yeah, maybe it happens because there isn’t a track maintained for the post. I’m honestly not sure, but this could be the reason.

Great, this works perfectly fine. Was wondering does all the @anon created accounts get dumped after while or it remains there in the database?

I don’t think that they ever get dumped / scrubbed per se automatically. Just that new anon posts after x days from the last one by that user (controlled by a core site setting) create a new anon user.

It would of course be quite possible to do so manually.

לייק 1

Got you :))

Also, is there a way to hide that popup every time when someone posts?

לייק 1

Here’s a fix if someone needs it, you can form the repo and in the plugin.rb file you can remove both result.message and result.route_to, so now there is no feedback mechanism to the user, and no dialog box or popup will be triggered.

This is how the piece of code would look like:

if result.success?
  result.post = post
  # Removed message and route_to to skip the dialog box
else
  user.flag_linked_posts_as_spam if creator.spam?
end

I’ve added this CSS to a Theme Component to achieve that (and hide their presence):

// Tweaks to the Anon category
body.category-general-hnz-anon {
    div.presence-users, div.row div.post-notice.new-user {
        display: none;
    }
}

The bit after category- is the slug of the category you are targetting.

2 לייקים

I found an alternative way to implement similar functions of this plugin but without it: just adding a group called anon (whatever you want) to include all anonymous users. Of course you do not need adding all accounts one by one, all of anonymouses’ email are anon.your.site, so setting an automatic adding, then specify your security of a category to only allow anon group to view, create topics and post.

לייק 1

Clever, but this misses the key functionality of this plugin:

While straightforward for savvy users, the flow of switching to an anonymous user, posting in the correct place, and switching back is a bridge too far for most!

4 לייקים

When someone replies to the Always-Anonymous Category via email, they are not annonymised. As you can imagine, this causes a bit of an issue sometimes!

Should this topic be tagged anonymization or perhaps anonymous-mode? I’d find it easier to find if so.

לייק 1

The latter. I have now done that.

I see the plugin patches newPostHandler so I would expect it to intercept emails as well. We will have a look when we find some time.

לייק 1

Ok - I’ll do some more testing and ensure it is reproducible to ensure you aren’t wasting your time!

Is there a way to override anon mode for mods/staff in the always anon categories? This doesn’t seem to allow mods to whisper post either. Not a big deal if not, just wondering if I’m missing something in settings.

That sounds fair.

I’ve added that feature now: whisper posts will never be anonymized.

5 לייקים

Thank you for the quick response!

2 לייקים

What would be the best way to suppress the “Your post has been anonymized” dialog after posting? I tried hiding it with css but it uses the same id and classes as all other error dialogs, so it made some modding actions impossible and suppresses user feedback dialogs. I’m not sure how to write a theme component to grab the modal only for queued anon posts or if this would need to be a modification to the plugin.

And why do you want to hide it?

לייק 1

Because it’s annoying and it causes friction in the posting process. We’re setting up an always anon category where the expectation is that people will have more extended discussions like they do in categories with usernames, and the popup notification makes it annoying to post anon more than a few times.

Maybe having the popup once on the first post would be fine, but the composer says anonymous, the anonymous comment is shown right after posting, and our category specifically has announcements all over that all topics/posts are anonymous.

I can write a theme component myself to add a div class and hide the popup, I was just hoping for some guidance on where to start since I haven’t done it with a dialog modal before.

I think it’s not easy to suppress it using a theme component.
There is a single line in the plugin that adds the message, if you remove that line then the message will be gone. If you’re willing to wait a few days then I will add this as a setting.

2 לייקים

Thanks very much, I’d appreciate it. It’s not a rush at all.