From: Dessalines Date: Mon, 18 Oct 2021 01:44:02 +0000 (-0400) Subject: Show bot account info. Fixes #458 (#463) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/README.md?a=commitdiff_plain;h=d664b03ab37e0ba8f0521168db24f87ad084e86f;p=lemmy-ui.git Show bot account info. Fixes #458 (#463) --- diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 8f831ce..deea4b9 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -182,6 +182,11 @@ export class CommentNode extends Component { {i18n.t("creator")} )} + {cv.creator.bot_account && ( +
+ {i18n.t("bot_account").toLowerCase()} +
+ )} {(cv.creator_banned_from_community || cv.creator.banned) && (
{i18n.t("banned")} diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 1dcd8e5..eca26e8 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -370,6 +370,16 @@ export class Profile extends Component { {i18n.t("banned")} )} + {pv.person.admin && ( +
  • + {i18n.t("admin")} +
  • + )} + {pv.person.bot_account && ( +
  • + {i18n.t("bot_account").toLowerCase()} +
  • + )}
    diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 6c8b0e3..96c7319 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -288,6 +288,11 @@ export class PostListing extends Component { {this.isAdmin && ( {i18n.t("admin")} )} + {post_view.creator.bot_account && ( + + {i18n.t("bot_account").toLowerCase()} + + )} {(post_view.creator_banned_from_community || post_view.creator.banned) && ( {i18n.t("banned")}