From 9c21aca7d3538ee097a86dc42e97085ee8197bb1 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Thu, 11 Sep 2014 21:59:26 +0530 Subject: [PATCH] added gravatar as well --- lib/users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/users.js b/lib/users.js index 19496b731..ef8bb6f29 100644 --- a/lib/users.js +++ b/lib/users.js @@ -87,7 +87,8 @@ getAvatarUrl = function(user){ } else{ return Gravatar.getGravatar(user, { d: 'http://demo.telesc.pe/img/default_avatar.png', - s: 80 + s: 80, + secure: location.protocol == 'https:' }); } // deactivate twitter avatars for now until we find a better way using the Twitter API