summaryrefslogtreecommitdiffstats
path: root/hyperkitty/views
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-08-01 16:59:03 +0000
committerAurélien Bompard <aurelien@bompard.org>2013-08-02 10:54:23 +0200
commit544cde185f9f55deab7b0738561e0b073e765c6a (patch)
treee24a03f8792a65c59a0d10e4c5e3f4527049d160 /hyperkitty/views
parentc14775c638735fd719a97f53cb119ccea37f2ba4 (diff)
downloadhyperkitty-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.py5
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]),