PLT-4205 Fixed pending posts always being considered as part of a post thread (#4488)
Этот коммит содержится в:
коммит произвёл
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';
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user