projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b1a39
)
fix: Remove unused hasBadges() function
author
Jay Sitter
<jay@jaysitter.com>
Sun, 2 Jul 2023 23:00:06 +0000
(19:00 -0400)
committer
Jay Sitter
<jay@jaysitter.com>
Sun, 2 Jul 2023 23:01:14 +0000
(19:01 -0400)
src/shared/components/comment/comment-node.tsx
patch
|
blob
|
history
diff --git
a/src/shared/components/comment/comment-node.tsx
b/src/shared/components/comment/comment-node.tsx
index c6b37fdb2636f8d1589704d5c3b687082c7236f6..662b67be4655ed962bf051c21713a812d67a9b63 100644
(file)
--- a/
src/shared/components/comment/comment-node.tsx
+++ b/
src/shared/components/comment/comment-node.tsx
@@
-197,17
+197,6
@@
export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
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 {