diff --git a/public/src/forum/recent.js b/public/src/forum/recent.js index b4a27e664b..f3e51686aa 100644 --- a/public/src/forum/recent.js +++ b/public/src/forum/recent.js @@ -116,6 +116,15 @@ define('forum/recent', ['forum/infinitescroll'], function(infinitescroll) { }; Recent.onTopicsLoaded = function(templateName, topics, showSelect, callback) { + + topics = topics.filter(function(topic) { + return !$('#topics-container li[data-tid=' + topic.tid + ']').length; + }); + + if (!topics.length) { + callback(); + } + infinitescroll.parseAndTranslate(templateName, 'topics', {topics: topics, showSelect: showSelect}, function(html) { $('#category-no-topics').remove();