mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closes #6494
This commit is contained in:
@@ -228,7 +228,7 @@ userController.exportUploads = function (req, res, next) {
|
||||
|
||||
userController.exportProfile = function (req, res, next) {
|
||||
async.waterfall([
|
||||
async.apply(db.getObjects.bind(db), ['user:1', 'user:1:settings']),
|
||||
async.apply(db.getObjects.bind(db), ['user:' + req.params.uid, 'user:' + req.params.uid + ':settings']),
|
||||
function (objects, next) {
|
||||
Object.assign(objects[0], objects[1]);
|
||||
delete objects[0].password;
|
||||
|
||||
Reference in New Issue
Block a user