fixing regression for #2355, introduced in a129075

This commit is contained in:
Julian Lam
2014-11-12 10:58:46 -05:00
parent c2467de9c2
commit 7e35987e1b
3 changed files with 30 additions and 3 deletions

View File

@@ -39,6 +39,13 @@ SocketCategories.loadMore = function(socket, data, callback) {
},
settings: function(next) {
user.getSettings(socket.uid, next);
},
targetUid: function(next) {
if (data.author) {
user.getUidByUserslug(data.author, next);
} else {
next();
}
}
}, function(err, results) {
if (err) {
@@ -55,8 +62,9 @@ SocketCategories.loadMore = function(socket, data, callback) {
categories.getCategoryTopics({
cid: data.cid,
start: start,
end: end,
uid: socket.uid
stop: end,
uid: socket.uid,
targetUid: results.targetUid
}, function(err, data) {
if (err) {
return callback(err);