diff options
-rw-r--r-- | askbot/models/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index ba274969..ef53828a 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -1575,7 +1575,8 @@ def calculate_gravatar_hash(instance, **kwargs): """Calculates a User's gravatar hash from their email address.""" if kwargs.get('raw', False): return - instance.gravatar = hashlib.md5(instance.email).hexdigest() + clean_email = instance.email.strip().lower() + instance.gravatar = hashlib.md5(clean_email).hexdigest() def record_post_update_activity( |