From ba1986b93138af07988bf24425d049c920be53f9 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Wed, 2 Jul 2014 00:09:56 +0800 Subject: [PATCH] gravatar use https --- controllers/web/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/web/package.js b/controllers/web/package.js index 129d0113c..a0be12be4 100644 --- a/controllers/web/package.js +++ b/controllers/web/package.js @@ -75,7 +75,7 @@ exports.display = function *(next) { for (var i = 0; i < pkg.maintainers.length; i++) { var maintainer = pkg.maintainers[i]; if (maintainer.email) { - maintainer.gravatar = gravatar.url(maintainer.email, {s: '50', d: 'retro'}, false); + maintainer.gravatar = gravatar.url(maintainer.email, {s: '50', d: 'retro'}, true); } } } @@ -88,7 +88,7 @@ exports.display = function *(next) { for (var i = 0; i < pkg.contributors.length; i++) { var contributor = pkg.contributors[i]; if (contributor.email) { - contributor.gravatar = gravatar.url(contributor.email, {s: '50', d: 'retro'}, false); + contributor.gravatar = gravatar.url(contributor.email, {s: '50', d: 'retro'}, true); } if (config.packagePageContributorSearch || !contributor.url) { contributor.url = '/~' + encodeURIComponent(contributor.name);