Node.js based forum software built for the modern web
removed the hook I just added: filter:category.recent, was a bit misleading.
Julian Lam9debfd94ec19
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.jsindex 9539e5962d..2f50cc2bb8 100644--- a/src/categories/recentreplies.js+++ b/src/categories/recentreplies.js@@ -26,12 +26,12 @@ module.exports = function(Categories) {return callback(err, []);}- plugins.fireHook('filter:categories.recent', {- uid: uid,- pids: pids- }, function(err, data) {- posts.getPostSummaryByPids(data.pids, uid, {stripTags: true}, callback);- });+ async.waterfall([+ async.apply(privileges.posts.filter, 'read', pids, uid),+ function(pids, next) {+ posts.getPostSummaryByPids(pids, uid, {stripTags: true}, next);+ }+ ], callback);});});};