mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 18:29:50 +01:00
fix relative_path image url for sub installs
This commit is contained in:
@@ -438,7 +438,7 @@ accountsController.uploadPicture = function (req, res, next) {
|
||||
|
||||
user.setUserFields(updateUid, {uploadedpicture: image.url, picture: image.url});
|
||||
|
||||
res.json([{name: userPhoto.name, url: image.url}]);
|
||||
res.json([{name: userPhoto.name, url: nconf.get('relative_path') + image.url}]);
|
||||
}
|
||||
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user