Commit 7fdc5b6d authored by Michal Čihař's avatar Michal Čihař

Default avatar param is just d now

parent a7bb9d01
......@@ -45,7 +45,10 @@ def gravatar_for_email(email, size=80):
Generates url for gravatar.
'''
url = "%savatar/%s/?" % (GRAVATAR_URL_PREFIX, md5_constructor(email.lower()).hexdigest())
url += urllib.urlencode({"s": str(size), "default": GRAVATAR_DEFAULT_IMAGE})
url += urllib.urlencode({
's': str(size),
'd': GRAVATAR_DEFAULT_IMAGE
})
return escape(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment