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 GitHub
parent 6aa33e6809
commit b1dcd222ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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);