aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'rhodecode/model/comment.py')
-rw-r--r--rhodecode/model/comment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py
index 8e23ee58..3753198c 100644
--- a/rhodecode/model/comment.py
+++ b/rhodecode/model/comment.py
@@ -67,7 +67,7 @@ class ChangesetCommentsModel(BaseModel):
repo = Repository.get(repo_id)
cs = repo.scm_instance.get_changeset(revision)
desc = cs.message
- author = cs.author_email
+ author_email = cs.author_email
comment = ChangesetComment()
comment.repo = repo
comment.user_id = user_id
@@ -96,8 +96,8 @@ class ChangesetCommentsModel(BaseModel):
# get the current participants of this changeset
recipients = ChangesetComment.get_users(revision=revision)
- # add changeset author
- recipients += [User.get_by_email(author)]
+ # add changeset author if it's in rhodecode system
+ recipients += [User.get_by_email(author_email)]
NotificationModel().create(
created_by=user_id, subject=subj, body=body,