Mercurial > kallithea
diff rhodecode/model/comment.py @ 2082:0e27da019f84 beta
code garden
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Mar 2012 02:52:46 +0200 |
parents | 179604334d98 |
children | 8ecfed1d8f8b |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Thu Mar 01 02:45:47 2012 +0200 +++ b/rhodecode/model/comment.py Thu Mar 01 02:52:46 2012 +0200 @@ -67,7 +67,7 @@ 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 @@ # 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,