~thumper/wikkid/debian

« back to all changes in this revision

Viewing changes to wikkid/user/baseuser.py

  • Committer: Tim Penhey
  • Date: 2010-11-22 09:33:07 UTC
  • mfrom: (52.2.1 gravatar-lowercase)
  • Revision ID: tim@penhey.net-20101122093307-vynb7uhnstbz2lrz
Lower case the email address for the gravatar hash - Jonathan Harker

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    @property
18
18
    def gravatar(self):
19
19
        url = "http://www.gravatar.com/avatar/"
20
 
        url += hashlib.md5(self.email).hexdigest()
 
20
        url += hashlib.md5(self.email.lower()).hexdigest()
21
21
        url += "?s=50&d=identicon"
22
22
        return url