1. Rashaad Essop
  2. ScraperWiki

Commits

Zarino Zappia  committed 079269d Merge

Merge to stable via fab

  • Participants
  • Parent commits b6db54e, 1987e02
  • Branches stable

Comments (0)

Files changed (1)

File web/frontend/templatetags/gravatar.py

View file
  • Ignore whitespace
     gravatar_id = user and hashlib.md5(user.email.strip().lower()).hexdigest() or ''
     gravatardata = urllib.urlencode({'size': str(size_px), 'd': 'identicon'})
     
-    url = "https://s.gravatar.com/%s?%s" % (gravatar_id, gravatardata)
+    url = "https://s.gravatar.com/avatar/%s?%s" % (gravatar_id, gravatardata)
     username = user and user.username or ''
     return {'gravatar': {'url':url, 'size':size, 'size_px':size_px, 'username':username }}