From aeff5d21906d6efe3d2937c652c3444ce8306713 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 15 Jan 2021 12:42:05 -0500 Subject: [PATCH] Adding live comment count. --- src/shared/components/post.tsx | 1 + 1 file changed, 1 insertion(+) 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 ( -- 2.44.1