Disable likes/reaction individual user

I saw the note on how to disable likes site wise, and that is not my goal.

I have a singular problematic poster (and yes there are more direct ways to deal with the real issue) that I would like to be able to send a more subtle message than silencing/suspending.

The idea occurred to me if I could pause / prevent reactions to this person’s posts is one way to approach this.

Any thoughts or ideas appreciated.

Thank you!

I think the solution is the add the user to a group and use CSS to hide the like button from that group.

There’s an example there to make something red. You’d do the same to make the like button hidden.

4 Likes

Once you install that component that @pfaffman suggested and add the user, you can do this

.group-NAME {

    .widget-button.btn-flat.toggle-like.like.no-text.btn-icon,
    .widget-button.btn-flat.toggle-like.has-like.fade-out.no-text.btn-icon,
    .widget-button.btn-flat.button-count.like-count.highlight-action.regular-likes.btn-text, 
    .widget-button.btn-flat.button-count.like-count.highlight-action.my-likes.btn-icon-text {
    display: none;
    }
}


2 Likes

Just to note, hiding them using CSS wouldn’t disable Likes/Reactions, and could be sidestepped in the browser console or by using safe mode (may be relevant depending on how troublesome the user in question felt that day :slight_smile:)

However, I think the question is how to disable other people from being able to Like/React to a specific user’s posts:

4 Likes

I would add that it is possible to disable safe mode for non-admins. But console still exists. :woman_shrugging:

ah yes, that is a different problem altogether :thinking:

would be nice if there was a minimum trust level setting for using reactions.

2 Likes

Oops. I didn’t read carefully enough. A similar solution would be to hide that person’s posts from everyone. That and the pros and cons has been discussed a few times.

2 Likes

Thanks all.

The goal is really “don’t feed the troll” as the individual in question loves to take the counterpoint in discussions, be contentious, and in general hasn’t found an internet hill they are unwilling to die on.

The tough part is generally speaking they contribute positively when they initiate a topic or post. The challenge is how they choose to respond to others.

My rationale is if I can deny the dopamine of likes/reactions maybe the behaviour changes.

3 Likes

The caveats of CSS solutions have been mentioned before, but here’s the CSS to hide reactions on a specific user’s posts:

article[data-user-id="12345"] .discourse-reactions-picker {
    display: none;
}

Where 12345 is the user’s ID.

5 Likes