mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05: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:
@@ -52,7 +52,12 @@ SocketCategories.loadMore = function(socket, data, callback) {
|
||||
var start = parseInt(data.after, 10),
|
||||
end = start + results.settings.topicsPerPage - 1;
|
||||
|
||||
categories.getCategoryTopics(data.cid, start, end, socket.uid, function(err, data) {
|
||||
categories.getCategoryTopics({
|
||||
cid: data.cid,
|
||||
start: start,
|
||||
end: end,
|
||||
uid: socket.uid
|
||||
}, function(err, data) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user