From 9679e5dae018bf9ea892fc17f2b92ff5400aef86 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 22 Dec 2010 22:24:14 +0000 Subject: [PATCH] Gravatar avatars are shown even if the emails left is lowercased, uppercased or randomcased. Bugfix for Jira OSQA-472. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@623 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/models/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forum/models/user.py b/forum/models/user.py index e50c1f0..8a80f03 100644 --- a/forum/models/user.py +++ b/forum/models/user.py @@ -163,8 +163,8 @@ class User(BaseModel, DjangoUser): @property def gravatar(self): - return md5(self.email).hexdigest() - + return md5(self.email.lower()).hexdigest() + def save(self, *args, **kwargs): if self.reputation < 0: self.reputation = 0 -- 2.39.5