Node.js based forum software built for the modern web
fix don't crash if settings are not passed in
Baris Usaklif8fa6596427d
diff --git a/src/socket.io/user.js b/src/socket.io/user.jsindex add94f3804..c8d473ef03 100644--- a/src/socket.io/user.js+++ b/src/socket.io/user.js@@ -219,7 +219,7 @@ function toggleFollow(method, uid, theiruid, callback) {}SocketUser.saveSettings = function (socket, data, callback) {- if (!socket.uid || !data) {+ if (!socket.uid || !data || !data.settings) {return callback(new Error('[[error:invalid-data]]'));}