mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
closes #6985
This commit is contained in:
@@ -85,7 +85,8 @@ module.exports = function (Categories) {
|
|||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function (next) {
|
function (next) {
|
||||||
var keys = categoryData.map(category => 'cid:' + category.cid + ':recent_tids');
|
const categoriesToLoad = categoryData.filter(category => parseInt(category.numRecentReplies, 10) > 0);
|
||||||
|
const keys = categoriesToLoad.map(category => 'cid:' + category.cid + ':recent_tids');
|
||||||
db.getSortedSetsMembers(keys, next);
|
db.getSortedSetsMembers(keys, next);
|
||||||
},
|
},
|
||||||
function (results, next) {
|
function (results, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user