diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -102,6 +102,7 @@ class ChangesetCommentsModel(BaseModel): # add changeset author if it's in rhodecode system recipients += [User.get_by_email(author_email)] + # create notification objects, and emails NotificationModel().create( created_by=user_id, subject=subj, body=body, recipients=recipients, type_=Notification.TYPE_CHANGESET_COMMENT diff --git a/rhodecode/model/notification.py b/rhodecode/model/notification.py --- a/rhodecode/model/notification.py +++ b/rhodecode/model/notification.py @@ -103,8 +103,11 @@ class NotificationModel(BaseModel): if with_email is False: return notif - # send email with notification - for rec in recipients_objs: + #don't send email to person who created this comment + rec_objs = set(recipients_objs).difference(set([created_by_obj])) + + # send email with notification to all other participants + for rec in rec_objs: email_subject = NotificationModel().make_description(notif, False) type_ = type_ email_body = body