diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-08-01 16:59:03 +0000 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-08-02 10:54:23 +0200 |
commit | 544cde185f9f55deab7b0738561e0b073e765c6a (patch) | |
tree | e24a03f8792a65c59a0d10e4c5e3f4527049d160 /hyperkitty/views | |
parent | c14775c638735fd719a97f53cb119ccea37f2ba4 (diff) | |
download | hyperkitty-544cde185f9f55deab7b0738561e0b073e765c6a.tar.gz hyperkitty-544cde185f9f55deab7b0738561e0b073e765c6a.tar.xz hyperkitty-544cde185f9f55deab7b0738561e0b073e765c6a.zip |
Add the Gravatar on the public profile page
Diffstat (limited to 'hyperkitty/views')
-rw-r--r-- | hyperkitty/views/accounts.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hyperkitty/views/accounts.py b/hyperkitty/views/accounts.py index c7772ec..3106b14 100644 --- a/hyperkitty/views/accounts.py +++ b/hyperkitty/views/accounts.py @@ -267,9 +267,14 @@ def public_profile(request, user_id): likestatus = "likealot" elif likes - dislikes > 0: likestatus = "like" + try: + email = unicode(mm_user.addresses[0]) + except KeyError: + email = None context = { "fullname": fullname, "mm_user": mm_user, + "email": email, "creation": dateutil.parser.parse(mm_user.created_on), "subscriptions": subscriptions, "posts_count": sum([s["posts_count"] for s in subscriptions]), |