From: Dessalines Date: Fri, 15 Jan 2021 17:42:05 +0000 (-0500) Subject: Adding live comment count. X-Git-Url: http://these/git/%7B%60%24%7BarchiveTodayUrl%7D/static/%24%7Bargs.pageFn.prev%7D?a=commitdiff_plain;h=aeff5d21906d6efe3d2937c652c3444ce8306713;p=lemmy-ui.git Adding live comment count. --- diff --git a/src/shared/components/post.tsx b/src/shared/components/post.tsx index 73d861e..2bbd7e8 100644 --- a/src/shared/components/post.tsx +++ b/src/shared/components/post.tsx @@ -483,6 +483,7 @@ export class Post extends Component { // Necessary since it might be a user reply, which has the recipients, to avoid double if (data.recipient_ids.length == 0) { this.state.postRes.comments.unshift(data.comment_view); + this.state.postRes.post_view.counts.comments++; this.setState(this.state); } } else if (