From 8c06eb9749da021dfadc7dd88c9cfa00b8392d59 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Fri, 12 May 2023 03:15:04 +0200 Subject: [PATCH] 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 --- src/shared/components/comment/comment-node.tsx | 5 ----- src/shared/components/post/post-listing.tsx | 7 ------- 2 files changed, 12 deletions(-) diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 2b7ea6e..d6fe086 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -259,11 +259,6 @@ export class CommentNode extends Component { {i18n.t("bot_account").toLowerCase()} )} - {(cv.creator_banned_from_community || isBanned(cv.creator)) && ( -
- {i18n.t("banned")} -
- )} {this.props.showCommunity && ( <> {i18n.t("to")} diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index b26070e..b3a93c0 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -335,13 +335,6 @@ export class PostListing extends Component { {i18n.t("bot_account").toLowerCase()} )} - {(post_view.creator_banned_from_community || - isBanned(post_view.creator)) && ( - {i18n.t("banned")} - )} - {post_view.creator_blocked && ( - {"blocked"} - )} {this.props.showCommunity && ( {i18n.t("to")} -- 2.44.1