diff --git a/src/socket.io/user.js b/src/socket.io/user.js index 1a6f12d671..96811d57e7 100644 --- a/src/socket.io/user.js +++ b/src/socket.io/user.js @@ -201,7 +201,7 @@ SocketUser.uploadProfileImageFromUrl = function(socket, url, callback) { } user.setUserFields(socket.uid, {uploadedpicture: data.url, picture: data.url}, function(err) { - callback(err, data.image.url); + callback(err, data.url); }); }); };