From e5ced4f7031e0ba624ad21d8f3a941add31a1090 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 21 Feb 2023 15:52:34 -0500 Subject: [PATCH] Check to make sure post is correct. Fixes #934 (#949) --- src/shared/components/post/post.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 72a54284..2f8a2089 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -651,6 +651,7 @@ export class Post extends Component { data.recipient_ids.length == 0 && !creatorBlocked && postRes && + data.comment_view.post.id == postRes.post_view.post.id && commentsRes ) { commentsRes.comments.unshift(data.comment_view);