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:
Julian Lam
2014-11-06 18:14:07 -05:00
parent 3272ca34ee
commit a12907512f
7 changed files with 91 additions and 30 deletions

View File

@@ -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);
}