The discussion revolves around the idea of blocking users from using reactions when they are silenced on a Discourse forum. Crius suggests that silencing a user should also prevent them from using reactions to avoid harassment by spamming reactions. JammyDodger agrees and proposes that silenced users should not be able to reply to non-staff PMs either.
Heliosurge provides a possible solution by sharing code for hiding the like button in a category if the user is not part of a specific group. They also suggest using a theme component to hide likes for silenced users. Crius thanks Heliosurge for the options and attempts to implement them but encounters difficulties.
Heliosurge suggests that Crius may need to update the code due to changes in the core or use a different approach, such as targeting a group instead of the silenced attribute, which may not be available in the frontend.
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.
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.
Also recently found this Customization > Theme component you would just need to leave for the silenced user to TL0. Or fork it to target silenced users.
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 Customization > 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.