diff --git a/public/src/client/recent.js b/public/src/client/recent.js index 1f6536327d..973819d44d 100644 --- a/public/src/client/recent.js +++ b/public/src/client/recent.js @@ -133,7 +133,7 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function(infinite infinitescroll.loadMore('topics.loadMoreFromSet', { after: $('[component="category"]').attr('data-nextstart'), - set: 'topics:recent' + set: $('[component="category"]').attr('data-set') ? $('[component="category"]').attr('data-set') : 'topics:recent' }, function(data, done) { if (data.topics && data.topics.length) { Recent.onTopicsLoaded('recent', data.topics, false, done); diff --git a/src/controllers/recent.js b/src/controllers/recent.js index fe9355c533..512a034512 100644 --- a/src/controllers/recent.js +++ b/src/controllers/recent.js @@ -54,6 +54,7 @@ recentController.get = function(req, res, next) { var data = {}; data.topics = topics; data.nextStart = stop + 1; + data.set = 'topics:recent'; data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1; data.rssFeedUrl = nconf.get('relative_path') + '/recent.rss'; data.title = '[[pages:recent]]';