mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
adding uid to filter:category.topics.get
This commit is contained in:
@@ -36,9 +36,9 @@ module.exports = function(Categories) {
|
|||||||
topics[i].index = indices[topics[i].tid];
|
topics[i].index = indices[topics[i].tid];
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.fireHook('filter:category.topics.get', topics, function(err, topics) {
|
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, function(err, params) {
|
||||||
next(null, {
|
next(null, {
|
||||||
topics: topics,
|
topics: params.topics,
|
||||||
nextStart: data.stop + 1
|
nextStart: data.stop + 1
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user