Node.js based forum software built for the modern web
fix avatar upload crash discovered by @AccaliaDeElementia
Ben Lubar7540fb54ac02
diff --git a/src/user/picture.js b/src/user/picture.jsindex a55eee2975..385050fcf2 100644--- a/src/user/picture.js+++ b/src/user/picture.js@@ -63,7 +63,9 @@ module.exports = function(User) {async.series([async.apply(image.normalise, picture.path, extension),async.apply(fs.rename, picture.path + '.png', picture.path)- ], next);+ ], function(err) {+ next(err);+ });},function(next) {User.getUserField(updateUid, 'uploadedpicture', next);