# HG changeset patch # User Marcin Kuzminski # Date 2012-09-05 22:06:39 # Node ID 5acab31448d16643d9dffcab494d80bc4d805f97 # Parent 25b10f9d23b4681cf7f7ded183d05c6c640ef177 fixed kwargs ->email_kwargs diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -169,13 +169,13 @@ class ChangesetCommentsModel(BaseModel): mention_recipients = set(self._extract_mentions(body))\ .difference(recipients) if mention_recipients: - kwargs.update({'pr_mention': True}) + email_kwargs.update({'pr_mention': True}) subj = _('[Mention]') + ' ' + subj NotificationModel().create( created_by=user, subject=subj, body=body, recipients=mention_recipients, type_=notification_type, - email_kwargs=kwargs + email_kwargs=email_kwargs ) return comment