always setting app.previousUrl now, and passing cid into filter:category.topics.get hook

This commit is contained in:
Julian Lam
2017-01-13 15:01:14 -05:00
parent 2a9088d571
commit c99321a518
3 changed files with 3 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ module.exports = function (Categories) {
topics[i].index = data.start + i;
}
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, next);
plugins.fireHook('filter:category.topics.get', {cid: data.cid, topics: topics, uid: data.uid}, next);
},
function (results, next) {
next(null, {topics: results.topics, nextStart: data.stop + 1});