mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-04-09 14:09:32 +02:00
add extension to name, when upload profile pictures
This commit is contained in:
@@ -144,7 +144,7 @@ module.exports = function (User) {
|
||||
const uploadedImage = await image.uploadImage(filename, `profile/uid-${updateUid}`, {
|
||||
uid: updateUid,
|
||||
path: normalizedPath,
|
||||
name: 'profileAvatar',
|
||||
name: `profileAvatar${extension}`,
|
||||
});
|
||||
|
||||
await User.updateProfile(callerUid, {
|
||||
|
||||
Reference in New Issue
Block a user