Fix gravatar retrieval

fixes #1778

- use http for initial request, store url with no schema
This commit is contained in:
Hannah Wolfe 2014-01-01 17:47:12 +00:00
parent 16acba5628
commit 4bac1e3672

View File

@ -362,7 +362,7 @@ User = ghostBookshelf.Model.extend({
"?d=404",
checkPromise = when.defer();
http.get(gravatarUrl, function (res) {
http.get('http:' + gravatarUrl, function (res) {
if (res.statusCode !== 404) {
userData.image = gravatarUrl;
}