mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
closes #1917
This commit is contained in:
@@ -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());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user