X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcomment%2Fcomment-node.tsx;h=7b7f29e5cbc5fda864a6df18f9dfb201150d597f;hb=2911cd8cdb348629a97d60239723b1925210df0a;hp=c6b37fdb2636f8d1589704d5c3b687082c7236f6;hpb=9869b911cf480ee88c7b1e7d2f689cc2e1c65157;p=lemmy-ui.git diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index c6b37fd..7b7f29e 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -114,7 +114,7 @@ interface CommentNodeProps { moderators?: CommunityModeratorView[]; admins?: PersonView[]; noBorder?: boolean; - noIndent?: boolean; + isTopLevel?: boolean; viewOnly?: boolean; locked?: boolean; markable?: boolean; @@ -197,17 +197,6 @@ export class CommentNode extends Component { return this.commentView.comment.id; } - get hasBadges(): boolean { - const cv = this.commentView; - - return ( - this.isPostCreator || - isMod(cv.creator.id, this.props.moderators) || - isAdmin(cv.creator.id, this.props.admins) || - cv.creator.bot_account - ); - } - componentWillReceiveProps( nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps> ): void { @@ -303,14 +292,10 @@ export class CommentNode extends Component { mark: this.isCommentNew || this.commentView.comment.distinguished, })} > -
+