Switch to unified view
a/Allura/allura/lib/gravatar.py | b/Allura/allura/lib/gravatar.py | ||
---|---|---|---|
... |
... |
||
58 | gravatar_id = id(email) |
58 | gravatar_id = id(email) |
59 | if 'r' not in kw and 'rating' not in kw: kw['r'] = 'pg' |
59 | if 'r' not in kw and 'rating' not in kw: kw['r'] = 'pg' |
60 | return ('https://secure.gravatar.com/avatar/%s?%s' % (gravatar_id, urllib.urlencode(kw))) |
60 | return ('https://secure.gravatar.com/avatar/%s?%s' % (gravatar_id, urllib.urlencode(kw))) |
61 | 61 | ||
62 | def for_user(user): |
62 | def for_user(user): |
63 | return url(user.preferences['email_address']) |
63 | return url(user.get_pref('email_address')) |