mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
removed dupe code
This commit is contained in:
@@ -365,17 +365,6 @@ SocketUser.loadMore = function(socket, data, callback) {
|
||||
});
|
||||
};
|
||||
|
||||
SocketUser.loadMoreRecentPosts = function(socket, data, callback) {
|
||||
if(!data || !data.uid || !utils.isNumber(data.after)) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
var start = Math.max(0, parseInt(data.after, 10)),
|
||||
end = start + 9;
|
||||
|
||||
posts.getPostsByUid(socket.uid, data.uid, start, end, callback);
|
||||
};
|
||||
|
||||
SocketUser.setStatus = function(socket, status, callback) {
|
||||
if (!socket.uid) {
|
||||
return callback(new Error('[[invalid-uid]]'));
|
||||
|
||||
Reference in New Issue
Block a user