0
Fork 0
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:
Hannah Wolfe 2014-11-16 09:46:32 +00:00
commit 226a6ff05e

View file

@ -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);