From e1a8c520bae4e69cbccc1418be0b1612d8a37beb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 24 Mar 2016 22:22:07 +0200 Subject: [PATCH] closes #4404 --- public/src/client/topic/posts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index 72c9708439..ff8017e109 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -147,6 +147,12 @@ define('forum/topic/posts', [ $(window).trigger('action:posts.loading', {posts: data.posts, after: after, before: before}); app.parseAndTranslate('topic', 'posts', data, function(html) { + + html = html.filter(function(index, el) { + var pid = $(this).attr('data-pid'); + return pid && $('[component="post"][data-pid="' + pid + '"]').length === 0; + }); + if (after) { html.insertAfter(after); } else if (before) {