mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fix gravatar request url.
Refs #4367 - 'http:' was accidentally left out when passing the gravatar URL into request, and request requires the full scheme to be present.
This commit is contained in:
parent
2d213212e7
commit
15fe121490
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ User = ghostBookshelf.Model.extend({
|
|||
resolve(userData);
|
||||
}
|
||||
|
||||
request({url: gravatarUrl, timeout: 2000}, function (err, response) {
|
||||
request({url: 'http:' + gravatarUrl, timeout: 2000}, function (err, response) {
|
||||
if (err) {
|
||||
// just resolve with no image url
|
||||
resolve(userData);
|
||||
|
|
Loading…
Add table
Reference in a new issue