From: Dessalines Date: Wed, 8 Jul 2020 05:02:14 +0000 (-0400) Subject: HTML title bugs. X-Git-Url: http://these/git/%22%7Burl%7D/%7BjoinLemmyUrl%7D?a=commitdiff_plain;h=cd4e0ab3c2cfd615e4771fb9181a31ce237b5ceb;p=lemmy.git HTML title bugs. - Fixing HTML titles for some pages. Fixes #801 - Removing WebSocketService.Instance.site, fetching site on demand now. --- diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 155efe8e..839a01dc 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -73,6 +73,7 @@ interface CommentNodeProps { showCommunity?: boolean; sort?: CommentSortType; sortType?: SortType; + enableDownvotes: boolean; } export class CommentNode extends Component { @@ -279,7 +280,7 @@ export class CommentNode extends Component { {this.state.upvotes} )} - {WebSocketService.Instance.site.enable_downvotes && ( + {this.props.enableDownvotes && (