From d664b03ab37e0ba8f0521168db24f87ad084e86f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 17 Oct 2021 21:44:02 -0400 Subject: [PATCH] Show bot account info. Fixes #458 (#463) --- src/shared/components/comment/comment-node.tsx | 5 +++++ src/shared/components/person/profile.tsx | 10 ++++++++++ src/shared/components/post/post-listing.tsx | 5 +++++ 3 files changed, 20 insertions(+) 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")} -- 2.44.1