From a21ae854ba3a880159f65688c80ba3c1d27bf2c7 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Wed, 21 Nov 2018 12:13:13 -0500 Subject: [PATCH] Use https URLs when falling back to gravatar for profile pictures. Fixes #135 --- events/models/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/models/profiles.py b/events/models/profiles.py index a25ff32..7bccf32 100644 --- a/events/models/profiles.py +++ b/events/models/profiles.py @@ -208,7 +208,7 @@ def _getUserProfile(self): if self.email: h = hashlib.md5() h.update(bytearray(profile.user.email, 'utf8')) - profile.avatar = 'http://www.gravatar.com/avatar/%s.jpg?d=mm' % h.hexdigest() + profile.avatar = 'https://www.gravatar.com/avatar/%s.jpg?d=mm' % h.hexdigest() profile.save()