Silence status to block ability to use reactions as well

The title says it all, really.

We had users that have to be set to “silenced” simply continue “harassing” by spamming reactions on other users.

There is no limit to the pettiness of some people, I guess.
It would make sense to me that when a user is silenced, it could not use reactions as well.

5 Likes

This was raised as part of this topic too:

1 Like

Hi my topic here might be of help. @Canapin shared code for hiding like button in a category if not part of a group. The Code might be able to be modified to use status of current user and if silenced to hide button.

This could be used as an interm workaround.

1 Like

Also recently found this theme-component you would just need to leave for the silenced user to TL0. Or fork it to target silenced users.

1 Like

Thank you so much for the options/workaround!

I’ll check them asap. Cheers!

Mhm, I tried creating a new feature that include silenced users but it doesn’t seem to work.

Odd.

It could be because my community use the reactions.

Edit: For some reason I checked the currentUser and noticed a silenced attribute but now that I am checking again, there is no such thing.

Am I hallucinating? Does the frontend not need to know if a user is silenced?

If you were trying the theme-component linked it may need some updates due to changes in core.


However I imagine you were trying the code snippet that @Canapin shared with me. I am not sure if there is an attribute for silence. However try targetting a group. You will need to use the theme-component that adds all groups current user is in as CSS targetable classes.

If your static test works. Create a group to add the toxic users to. You will maybe want to either use bookmarks(custom) or a scheduled post in a private moderator’s category to schedule a post to remind to remove or review removing the member from the toxic group used to hide likes.

1 Like