mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-09 18:05:09 +00:00
Remove "banned" badge from posts and comments (fixes 899) (#1011)
It doesnt need to be emphasized so much that a user is banned. Anyway this can already be seen in the mod log. For users who are banned from the entire site it is still shown on the profile. Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
b19b51c78c
commit
8c06eb9749
|
@ -259,11 +259,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
{i18n.t("bot_account").toLowerCase()}
|
||||
</div>
|
||||
)}
|
||||
{(cv.creator_banned_from_community || isBanned(cv.creator)) && (
|
||||
<div className="badge badge-danger mr-2">
|
||||
{i18n.t("banned")}
|
||||
</div>
|
||||
)}
|
||||
{this.props.showCommunity && (
|
||||
<>
|
||||
<span className="mx-1">{i18n.t("to")}</span>
|
||||
|
|
|
@ -335,13 +335,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
{i18n.t("bot_account").toLowerCase()}
|
||||
</span>
|
||||
)}
|
||||
{(post_view.creator_banned_from_community ||
|
||||
isBanned(post_view.creator)) && (
|
||||
<span className="mx-1 badge badge-danger">{i18n.t("banned")}</span>
|
||||
)}
|
||||
{post_view.creator_blocked && (
|
||||
<span className="mx-1 badge badge-danger">{"blocked"}</span>
|
||||
)}
|
||||
{this.props.showCommunity && (
|
||||
<span>
|
||||
<span className="mx-1"> {i18n.t("to")} </span>
|
||||
|
|
Loading…
Reference in a new issue