diff --git a/lemmy-translations b/lemmy-translations index a1fff8b4..007e5368 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit a1fff8b481f4b02327e4ee04088606af627628f2 +Subproject commit 007e53683768aeba63e9e4c179c1d240217bcee2 diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index d2dee1e8..7ed5e8f4 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -240,23 +240,23 @@ export class CommentNode extends Component { {cv.comment.distinguished && ( )} - {isMod_ && ( -
- {i18n.t("mod")} -
- )} - {isAdmin_ && ( -
- {i18n.t("admin")} -
- )} {this.isPostCreator && (
{i18n.t("creator")}
)} + {isMod_ && ( +
+ {i18n.t("mod")} +
+ )} + {isAdmin_ && ( +
+ {i18n.t("admin")} +
+ )} {cv.creator.bot_account && ( -
+
{i18n.t("bot_account").toLowerCase()}
)} @@ -283,13 +283,15 @@ export class CommentNode extends Component { )} {this.linkBtn(true)} - - { - this.props.allLanguages.find( - lang => lang.id === cv.comment.language_id - )?.name - } - + {cv.comment.language_id !== 0 && ( + + { + this.props.allLanguages.find( + lang => lang.id === cv.comment.language_id + )?.name + } + + )} {/* This is an expanding spacer for mobile */}
{showScores() && ( diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index fd9b883e..4d8e1094 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -327,13 +327,13 @@ export class PostListing extends Component { {this.creatorIsMod_ && ( - {i18n.t("mod")} + {i18n.t("mod")} )} {this.creatorIsAdmin_ && ( - {i18n.t("admin")} + {i18n.t("admin")} )} {post_view.creator.bot_account && ( - + {i18n.t("bot_account").toLowerCase()} )} @@ -344,13 +344,15 @@ export class PostListing extends Component { )} - - { - this.props.allLanguages.find( - lang => lang.id === post_view.post.language_id - )?.name - } - + {post_view.post.language_id !== 0 && ( + + { + this.props.allLanguages.find( + lang => lang.id === post_view.post.language_id + )?.name + } + + )}
  • {url && !(hostname(url) === getExternalHost()) && ( <>