This commit is contained in:
barisusakli
2015-01-08 13:47:15 -05:00
parent 52cf224e5a
commit a77a761433
20 changed files with 176 additions and 32 deletions

View File

@@ -298,6 +298,12 @@ SocketUser.setTopicSort = function(socket, sort, callback) {
}
};
SocketUser.setCategorySort = function(socket, sort, callback) {
if (socket.uid) {
user.setSetting(socket.uid, 'categoryTopicSort', sort, callback);
}
};
SocketUser.getOnlineAnonCount = function(socket, data, callback) {
callback(null, module.parent.exports.getOnlineAnonCount());
};