Node.js based forum software built for the modern web
SocketUser.getSettings
psychobunny225e8c012b97
diff --git a/src/socket.io/user.js b/src/socket.io/user.jsindex c9a9bed657..92dfdfe0c5 100644--- a/src/socket.io/user.js+++ b/src/socket.io/user.js@@ -133,6 +133,12 @@ SocketUser.unfollow = function(socket, data, callback) {}};+SocketUser.getSettings = function(socket, data, callback) {+ if (socket.uid) {+ user.getSettings(socket.uid, callback);+ }+};+SocketUser.saveSettings = function(socket, data, callback) {if (socket.uid && data) {user.saveSettings(socket.uid, data, callback);