mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
feat: use updateProfile for picture change
so it triggers action:user:updateProfile
This commit is contained in:
@@ -134,6 +134,7 @@ editController.uploadPicture = async function (req, res, next) {
|
||||
await user.checkMinReputation(req.uid, updateUid, 'min:rep:profile-picture');
|
||||
|
||||
const image = await user.uploadCroppedPictureFile({
|
||||
callerUid: req.uid,
|
||||
uid: updateUid,
|
||||
file: userPhoto,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user