mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #4462 from jaswilli/gravatar
Fix gravatar request url.
This commit is contained in:
commit
226a6ff05e
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