removed dupe code

This commit is contained in:
barisusakli
2014-11-17 23:57:31 -05:00
parent c974256600
commit 7f5984d1fd
5 changed files with 13 additions and 39 deletions

View File

@@ -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]]'));