From: Dessalines Date: Tue, 21 Feb 2023 20:52:34 +0000 (-0500) Subject: Check to make sure post is correct. Fixes #934 (#949) X-Git-Url: http://these/git/%22%7Burl%7D/static/%7B%7D/%7Bpost.url%7D?a=commitdiff_plain;h=b1dcd222abdd92394eaee02de8161b15a7477aec;p=lemmy-ui.git Check to make sure post is correct. Fixes #934 (#949) --- diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 72a5428..2f8a208 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);