# Stiltestatus om het gebruik van reacties ook te blokkeren

**URL:** https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795
**Category:** Feature
**Tags:** moderation, reactions
**Created:** [17 juli 2024 om 13:41 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795 "2024-07-17T13:41:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [17 juli 2024 om 13:41 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/1 "2024-07-17T13:41:45Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [17 juli 2024 om 13:45 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/2 "2024-07-17T13:45:59Z")

</div>

This was raised as part of this topic too:

> [@Proposed: allow moderators to silence, not delete users flagged by akismet](https://meta.discourse.org/t/proposed-allow-moderators-to-silence-not-delete-users-flagged-by-akismet/306322/10):
>
> > [@Proposed: allow moderators to silence, not delete users flagged by akismet](https://meta.discourse.org/t/proposed-allow-moderators-to-silence-not-delete-users-flagged-by-akismet/306322/8):
> >
> > I’m surprised they can still like.
> 
> I agree with this, especially now we have Reactions to take into consideration.
> 
> I also think replying to non-staff PMs should also be removed.
> 
> This would make Silence more effective as a halfway house where community interactions were not permitted, but unread lists were still tracked, bookmarks could still function, conversations with mods in PMs would still be possible, etc.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [17 juli 2024 om 14:36 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/3 "2024-07-17T14:36:09Z")

</div>

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.

> [@Looking to hide Likes & Decorate Op](https://meta.discourse.org/t/looking-to-hide-likes-decorate-op/255729):
>
> Hi I have categories that are visible to public but only certain groups are allowed to post/reply. I am looking for guidance thst if current user is not part of saud groups to hide the Like button in posts. To remove one of the many flaws of reddit. I am also looking fir code to allow decorating a Topic Author so all of there posts in the topic identify them as Op. Thanks.

> [@Looking to hide Likes & Decorate Op](https://meta.discourse.org/t/looking-to-hide-likes-decorate-op/255729/2):
>
> I suppose the easiest way would be using [CSS Classes for Current User’s Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068) which adds the current user groups to the body classes, then use CSS such as:
> 
> ```plaintext
> body.category-your-category-slug:not(.group-group_name) {
> button.like {
> display: none;
> }
> }
> 
> ```
> 
> Let me know if you have trouble understanding

This could be used as an interm workaround.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [20 juli 2024 om 05:40 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/4 "2024-07-20T05:40:26Z")

</div>

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.

> [@Hide Likes For New Users](https://meta.discourse.org/t/hide-likes-for-new-users/167245):
>
> This is a very simple theme component that gives you the ability to hide the “like” functionality from new (TL0) users. While not 100% foolproof against an extremely determined troll, it will prevent the “like” elements from ever loading into the DOM while active. The hope is that it can act as an additional obstacle to trolls attempting to abuse likes. I also included the option to hide likes from anons in case that’s helpful for any community. Before: After: Installati…

---

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [27 juli 2024 om 10:00 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/5 "2024-07-27T10:00:58Z")

</div>

Thank you so much for the options/workaround!

I’ll check them asap. Cheers!

---

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [27 juli 2024 om 11:42 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/6 "2024-07-27T11:42:57Z")

</div>

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

Odd.

> **[Build software better, together](https://github.com/theCrius/discourse-hide-likes/edit/main/javascripts/discourse/initializers/init-hide-likes.js)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

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?

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [27 juli 2024 om 22:08 UTC](https://meta.discourse.org/t/silence-status-to-block-ability-to-use-reactions-as-well/316795/7 "2024-07-27T22:08:15Z")

</div>

> [@Crius](#):
>
> 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 #Customization > 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 #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.

> [@CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068):
>
> discourse2Summary CSS Classes for Current User’s Groups adds the groups that a member is a part of as CSS classes on the \<body\> tag.eyeglassesPreview [Preview on theme-creator.discourse.org](https://discourse.theme-creator.io/theme/Johani/user-groups-css-classes)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-groups-css-classes-in-body](https://github.com/discourse/discourse-groups-css-classes-in-body)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Before: [image] After: [image] Discourse only adds the current us…
