diff --git a/src/socket.io/user.js b/src/socket.io/user.js index 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);