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

@@ -383,7 +383,7 @@ SocketTopics.moveAll = function(socket, data, callback) {
return callback(err || new Error('[[error:no-privileges]]'));
}
categories.getTopicIds(data.currentCid, 0, -1, function(err, tids) {
categories.getTopicIds('categories:' + data.currentCid + ':tid', 0, -1, function(err, tids) {
if (err) {
return callback(err);
}