mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
always setting app.previousUrl now, and passing cid into filter:category.topics.get hook
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user