mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
closes #1974
This commit is contained in:
@@ -398,10 +398,11 @@ accountsController.uploadPicture = function (req, res, next) {
|
||||
}
|
||||
|
||||
var updateUid = req.user.uid;
|
||||
var imageDimension = parseInt(meta.config.profileImageDimension, 10) || 128;
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
image.resizeImage(req.files.userPhoto.path, extension, 128, 128, next);
|
||||
image.resizeImage(req.files.userPhoto.path, extension, imageDimension, imageDimension, next);
|
||||
},
|
||||
function(next) {
|
||||
if (parseInt(meta.config['profile:convertProfileImageToPNG'], 10) === 1) {
|
||||
|
||||
Reference in New Issue
Block a user