mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
removed the hook I just added: filter:category.recent, was a bit misleading.
This commit is contained in:
@@ -26,12 +26,12 @@ module.exports = function(Categories) {
|
|||||||
return callback(err, []);
|
return callback(err, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.fireHook('filter:categories.recent', {
|
async.waterfall([
|
||||||
uid: uid,
|
async.apply(privileges.posts.filter, 'read', pids, uid),
|
||||||
pids: pids
|
function(pids, next) {
|
||||||
}, function(err, data) {
|
posts.getPostSummaryByPids(pids, uid, {stripTags: true}, next);
|
||||||
posts.getPostSummaryByPids(data.pids, uid, {stripTags: true}, callback);
|
}
|
||||||
});
|
], callback);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user