changeset 4791:bc81247b84bb

email: Also supply full username in comment templates
author Morten Skaaning <mortens@unity3d.com>
date Fri, 23 Jan 2015 22:03:53 +0100
parents c81379d100e0
children 923037eb67d4
files kallithea/model/comment.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/comment.py	Fri Jan 23 11:06:06 2015 -0500
+++ b/kallithea/model/comment.py	Fri Jan 23 22:03:53 2015 +0100
@@ -104,7 +104,7 @@
             recipients += [cs_author]
             email_kwargs = {
                 'status_change': status_change,
-                'cs_comment_user': h.person(user),
+                'cs_comment_user': h.person(user, 'username_and_name'),
                 'cs_target_repo': h.canonical_url('summary_home', repo_name=repo.repo_name),
                 'cs_comment_url': comment_url,
                 'raw_id': revision,
@@ -152,7 +152,7 @@
                 'status_change': status_change,
                 'closing_pr': closing_pr,
                 'pr_comment_url': comment_url,
-                'pr_comment_user': h.person(user),
+                'pr_comment_user': h.person(user, 'username_and_name'),
                 'pr_target_repo': h.canonical_url('summary_home',
                                    repo_name=pull_request.other_repo.repo_name),
                 'repo_name': pull_request.other_repo.repo_name,