Skip to content

Commit

Permalink
Check to make sure post is correct. Fixes #934 (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Feb 21, 2023
1 parent 0375d71 commit e5ced4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/components/post/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e5ced4f

Please sign in to comment.