mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +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