mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: closes #13219, only delete local user folder
This commit is contained in:
@@ -234,7 +234,9 @@ module.exports = function (User) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteImages(uid) {
|
async function deleteImages(uid) {
|
||||||
|
if (utils.isNumber(uid)) {
|
||||||
const folder = path.join(nconf.get('upload_path'), 'profile', `uid-${uid}`);
|
const folder = path.join(nconf.get('upload_path'), 'profile', `uid-${uid}`);
|
||||||
await rimraf(folder);
|
await rimraf(folder);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user