]> Untitled Git - lemmy-ui.git/commitdiff
Check to make sure post is correct. Fixes #934 (#949)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 21 Feb 2023 20:52:34 +0000 (15:52 -0500)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 20:52:34 +0000 (15:52 -0500)
src/shared/components/post/post.tsx

index 72a5428458af23a557837eaa5e7bdbb9eb538785..2f8a2089ec9551fe3e249da617303d02fbd7e5d5 100644 (file)
@@ -651,6 +651,7 @@ export class Post extends Component<any, PostState> {
         data.recipient_ids.length == 0 &&
         !creatorBlocked &&
         postRes &&
+        data.comment_view.post.id == postRes.post_view.post.id &&
         commentsRes
       ) {
         commentsRes.comments.unshift(data.comment_view);