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

Этот коммит содержится в:
Harrison Healey
2016-11-08 11:47:42 -05:00
коммит произвёл GitHub
родитель cb281ac714
Коммит 13dcccc60b

Просмотреть файл

@@ -272,6 +272,7 @@ export default class PostList extends React.Component {
commentRootId = post.id; commentRootId = post.id;
} }
if (commentRootId) {
for (const postId in posts) { for (const postId in posts) {
if (posts[postId].root_id === commentRootId) { if (posts[postId].root_id === commentRootId) {
commentCount += 1; commentCount += 1;
@@ -280,6 +281,7 @@ export default class PostList extends React.Component {
} }
} }
} }
}
if (parentPost && commentRootId) { if (parentPost && commentRootId) {
const commentsNotifyLevel = this.props.currentUser.notify_props.comments || 'never'; const commentsNotifyLevel = this.props.currentUser.notify_props.comments || 'never';