From 713380df1c5e0015e125d44a2c132523dcacf4d0 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Wed, 28 Oct 2015 15:22:31 -0700 Subject: Fixed various issues with commenting on recently deleted posts --- web/react/components/post_list.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/react/components/post_list.jsx') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index b9741bac4..444736db5 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -556,6 +556,11 @@ export default class PostList extends React.Component { var post = posts[order[i]]; var parentPost = posts[post.parent_id]; + // If the post is a comment whose parent has been deleted, don't add it to the list. + if (parentPost && parentPost.state === Constants.POST_DELETED) { + continue; + } + var sameUser = false; var sameRoot = false; var hideProfilePic = false; -- cgit v1.2.3-1-g7c22