bleistivt / yaga

YAGA adds reactions, badges and ranks to your Vanilla forum.
GNU General Public License v2.0
13 stars 2 forks source link

Anonymous reactions permission #34

Open garygreen opened 3 years ago

garygreen commented 3 years ago

Would be awesome if there was a new permission which allowed users to react anonymously.

Default display:

billy 👍   bob 👍 

Yaga.Reactions.Anonymous once enabled anyone in that Role with that permission enabled it will hide their username and avatar and show a count of those reactions:

(2) 👍 
bleistivt commented 3 years ago

I feel like this would be more appropriate as a setting for reaction types (e.g. "this type of reaction is always anonymous") since reaction types can already be contolled using roles.

But I am interested in your use case, maybe I don't understand it fully.

garygreen commented 3 years ago

Our use case is for our user's to be able to toggle a setting on/off in our app which allows them to react anonymously. The only way I can see this working is by assigning them with a role "Anonymous Reactions" with the permission Yaga.Reactions.Anonymous enabled.

At it's most basic level, adding it at the reaction level may work but compromises would need to be made. For example, it would mean having to duplicate all the reactions for the purpose for some being anonymous. Also if at any stage they want to become public again all existing reactions would still remain anonymous.

Main motivation behind this is our forum can get quite heated and people are privacy aware - so some may not like the idea of reacting to posts and letting the other person know exactly who reacted. If they could opt-in to anonymous reactions they would feel a lot more comfortable reacting freely without feeling persecuted.

bleistivt commented 3 years ago

Since regular users can't toggle their roles/permissions, that would be more like a profile preference, right?

garygreen commented 3 years ago

It's just the overall ability to do it within YAGA that we would like. There doesn't need to be a UI for users to toggle it.

We use the Vanilla API in our app to toggle roles for users. So we personally would expose this in a settings area on our main site, outside of Vanilla forum.

garygreen commented 3 years ago

I guess profile preference makes more sense rather than a permission.