Check to make sure post is correct. Fixes #934 (#949)

This commit is contained in:
Dessalines 2023-02-21 15:52:34 -05:00 committed by Dessalines
parent 0375d71cce
commit e5ced4f703

View file

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