changeset 8016:b84f495d82ce

journal: don't include email in author name - avoid double data In journal RSS feed, report author as: <author>name@example.com (User Name)</author> instead of double email due to: <author>name@example.com (User Name &lt;name@example.com&gt;)</author> In the journal ATOM feed, report author as: <author> <name>user Name</name> <email>test_admin@example.com</email> </author> instead of using double email due to: <name>name@example.com (User Name &lt;name@example.com&gt;)</name>
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 07 Dec 2019 04:20:58 +0100
parents d2319cb2ba9b
children dfd528520236
files kallithea/controllers/journal.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/journal.py	Thu Dec 19 20:50:33 2019 +0100
+++ b/kallithea/controllers/journal.py	Sat Dec 07 04:20:58 2019 +0100
@@ -134,7 +134,7 @@
                           pubdate=entry.action_date,
                           link=_url or h.canonical_url(''),
                           author_email=user.email,
-                          author_name=user.full_contact,
+                          author_name=user.full_name_or_username,
                           description=action_extra())
 
         response.content_type = feed.mime_type