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:
Nutomic 2023-05-12 03:15:04 +02:00 committed by GitHub
parent b19b51c78c
commit 8c06eb9749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View 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>

View 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>