changeset 8017:dfd528520236

repo: don't just report user name and email in one field - separate things properly In the repo RSS feed, report author as <author>name@example.com (User Name)</author> instead of using <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">User Name &lt;name@example.com&gt;</dc:creator> And in the ATOM feed with name and email separate: <author> <name>User Name</name> <email>name@example.com</email> </author> Instead of <name>User Name &lt;name@example.com&gt;</name>
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 07 Dec 2019 04:20:58 +0100
parents b84f495d82ce
children 68e802950fe4
files kallithea/controllers/feed.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/feed.py	Sat Dec 07 04:20:58 2019 +0100
+++ b/kallithea/controllers/feed.py	Sat Dec 07 04:20:58 2019 +0100
@@ -120,7 +120,8 @@
                 feed.add_item(title=self._get_title(cs),
                               link=h.canonical_url('changeset_home', repo_name=repo_name,
                                        revision=cs.raw_id),
-                              author_name=cs.author,
+                              author_email=cs.author_email,
+                              author_name=cs.author_name,
                               description=''.join(self.__get_desc(cs)),
                               pubdate=cs.date,
                               )