mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
#2894 no need to remove if there are no new posts
This commit is contained in:
@@ -75,7 +75,7 @@ define('forum/topic/posts', [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.posts.length > 1) {
|
if (newPosts.length && data.posts.length > 1) {
|
||||||
data.posts.forEach(function(post) {
|
data.posts.forEach(function(post) {
|
||||||
components.get('post', 'pid', post.pid).remove();
|
components.get('post', 'pid', post.pid).remove();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user