Use https URLs when falling back to gravatar for profile pictures. Fixes #135

This commit is contained in:
Michael Hall 2018-11-21 12:13:13 -05:00
parent 60916282d5
commit a21ae854ba

View file

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