mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
fix profile image upload on subfolder install
This commit is contained in:
@@ -120,7 +120,7 @@ var async = require('async'),
|
||||
|
||||
if (user.picture) {
|
||||
if (user.picture === user.uploadedpicture) {
|
||||
user.picture = user.uploadedpicture = user.picture.indexOf('http') === -1 ? nconf.get('relative_path') + user.picture : user.picture;
|
||||
user.picture = user.uploadedpicture = user.picture.startsWith('http') ? user.picture : nconf.get('relative_path') + user.picture;
|
||||
} else {
|
||||
user.picture = User.createGravatarURLFromEmail(user.email);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user