mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
appending relative path to user images for subfolder installs
This commit is contained in:
@@ -209,6 +209,11 @@ var bcrypt = require('bcryptjs'),
|
|||||||
} else {
|
} else {
|
||||||
user.hasPassword = false;
|
user.hasPassword = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user.picture === user.uploadedpicture) {
|
||||||
|
// Append relative url
|
||||||
|
user.picture = nconf.get('relative_path') + user.picture;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user