Skip to content

Commit

Permalink
Merge pull request #15 from hacsoc/fix-gravatar-url
Browse files Browse the repository at this point in the history
Explicit protocol in gravatar links
  • Loading branch information
sjaensch authored Feb 16, 2017
2 parents d375ace + 2b495d7 commit 9952993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_gravatar(self):
m = hashlib.md5()
m.update(self.user.email())
encoded_hash = base64.b16encode(m.digest()).lower()
return '//gravatar.com/avatar/{}?s=200'.format(encoded_hash)
return 'https://gravatar.com/avatar/{}?s=200'.format(encoded_hash)

def get_photo_url(self):
"""Return an avatar photo URL (depending on Gravatar config). This still could
Expand Down

0 comments on commit 9952993

Please sign in to comment.