Node.js based forum software built for the modern web
simpler check
barisusakli9fc80702b8f3
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.jsindex 36df0b3d1f..f17e8cbab5 100644--- a/public/src/client/topic/posts.js+++ b/public/src/client/topic/posts.js@@ -13,12 +13,11 @@ define('forum/topic/posts', [var Posts = {};Posts.onNewPost = function(data) {- var tid = ajaxify.data.tid;- if (data && data.posts && data.posts.length && parseInt(data.posts[0].tid, 10) !== parseInt(tid, 10)) {+ if (!data || !data.posts || !data.posts.length) {return;}- if (!data || !data.posts || !data.posts.length) {+ if (parseInt(data.posts[0].tid, 10) !== parseInt(ajaxify.data.tid, 10)) {return;}