PLT-4205 Fixed pending posts always being considered as part of a post thread (#4488)

This commit is contained in:
Harrison Healey
2016-11-08 11:47:42 -05:00
committed by GitHub
parent cb281ac714
commit 13dcccc60b

View File

@@ -272,11 +272,13 @@ export default class PostList extends React.Component {
commentRootId = post.id;
}
for (const postId in posts) {
if (posts[postId].root_id === commentRootId) {
commentCount += 1;
if (posts[postId].user_id === userId) {
shouldHighlightThreads = true;
if (commentRootId) {
for (const postId in posts) {
if (posts[postId].root_id === commentRootId) {
commentCount += 1;
if (posts[postId].user_id === userId) {
shouldHighlightThreads = true;
}
}
}
}