mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
refactored a bunch of methods so that you can pass in an author argument in querystring to see posts by just that author, #2355
This commit is contained in:
@@ -97,7 +97,12 @@ function generateForTopic(req, res, next) {
|
||||
function generateForCategory(req, res, next) {
|
||||
var cid = req.params.category_id;
|
||||
var uid = req.user ? req.user.uid : 0;
|
||||
categories.getCategoryById(cid, 0, 25, uid, function (err, categoryData) {
|
||||
categories.getCategoryById({
|
||||
cid: cid,
|
||||
start: 0,
|
||||
end: 25,
|
||||
uid: uid
|
||||
}, function (err, categoryData) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user