LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
888 stars 334 forks source link

Display badges on a user's posts and comments for when a user is banned in communities or from the instance #2743

Open DraconicNEO opened 2 weeks ago

DraconicNEO commented 2 weeks ago

Requirements

Describe the feature you'd like

It would be useful to know when reading a user's comments or posts in a community or in the feeds if the user has been banned from the community or from the instance. I think it would be a good idea to implement badges showing when a user is banned in a community or when they are banned from the site. That way people are well aware the user they are interacting with is banned and likely won't respond to them.

Example mockup I made to show what it would look like in the scenario of a user being banned from a community and the instance at the same time.

image

Here is banned from the instance on its own: image

Here's banned from the community on its own: image

dessalines commented 1 week ago

If you'd like to take a crack at this, feel free. The place to look is src/shared/components/common/user-badges.tsx , and it'd entail separating the banned prop into banned and banned_from_community.