mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55: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 {
|
||||
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