Skip to content

Node.js based forum software built for the modern web

#2894 no need to remove if there are no new posts

Barış Soner Uşaklı4a18a041c9cd
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js
index 85dfbbb6bb..1e907bfca5 100644
--- a/public/src/client/topic/posts.js
+++ b/public/src/client/topic/posts.js
@@ -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) {
components.get('post', 'pid', post.pid).remove();
});