]> Untitled Git - lemmy-ui.git/commitdiff
Remove "banned" badge from posts and comments (fixes 899) (#1011)
authorNutomic <me@nutomic.com>
Fri, 12 May 2023 01:15:04 +0000 (03:15 +0200)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 01:15:04 +0000 (21:15 -0400)
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>
src/shared/components/comment/comment-node.tsx
src/shared/components/post/post-listing.tsx

index 2b7ea6ee115d52162c7fb569de93534f8d2c2dd8..d6fe0862a1bc2a726dd5aea7bf8f56c7dbbe7aa2 100644 (file)
@@ -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>
index b26070e3f64f94e7561c7ce36e4ddb2e5f031fc7..b3a93c095f4490a00a91475546281efab999a81c 100644 (file)
@@ -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>