mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 01:48:25 +02: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