mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
removed user.uploadFromUrl and associated logic as cropped image modal supercedes it @pichalite
This commit is contained in:
@@ -148,7 +148,10 @@ editController.uploadPicture = function (req, res, next) {
|
||||
return helpers.notAllowed(req, res);
|
||||
}
|
||||
|
||||
user.uploadPicture(updateUid, userPhoto, next);
|
||||
user.uploadCroppedPicture({
|
||||
uid: updateUid,
|
||||
file: userPhoto,
|
||||
}, next);
|
||||
},
|
||||
], function (err, image) {
|
||||
file.delete(userPhoto.path);
|
||||
|
||||
Reference in New Issue
Block a user