mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user