Node.js based forum software built for the modern web
fix resizeImage on upload
pichalite2cd709418baa
diff --git a/src/controllers/uploads.js b/src/controllers/uploads.jsindex 374152e388..11c75fd7f9 100644--- a/src/controllers/uploads.js+++ b/src/controllers/uploads.js@@ -104,7 +104,7 @@ function resizeImage(fileObj, callback) {image.size(fullPath, next);},function (imageData, next) {- if (imageData.width < parseInt(meta.config.maximumImageWidth, 10) || 760) {+ if (imageData.width < (parseInt(meta.config.maximumImageWidth, 10) || 760)) {return callback(null, fileObj);}