Show More
@@ -102,6 +102,7 b' class ChangesetCommentsModel(BaseModel):' | |||
|
102 | 102 | # add changeset author if it's in rhodecode system |
|
103 | 103 | recipients += [User.get_by_email(author_email)] |
|
104 | 104 | |
|
105 | # create notification objects, and emails | |
|
105 | 106 | NotificationModel().create( |
|
106 | 107 | created_by=user_id, subject=subj, body=body, |
|
107 | 108 | recipients=recipients, type_=Notification.TYPE_CHANGESET_COMMENT |
@@ -103,8 +103,11 b' class NotificationModel(BaseModel):' | |||
|
103 | 103 | if with_email is False: |
|
104 | 104 | return notif |
|
105 | 105 | |
|
106 | # send email with notification | |
|
107 | for rec in recipients_objs: | |
|
106 | #don't send email to person who created this comment | |
|
107 | rec_objs = set(recipients_objs).difference(set([created_by_obj])) | |
|
108 | ||
|
109 | # send email with notification to all other participants | |
|
110 | for rec in rec_objs: | |
|
108 | 111 | email_subject = NotificationModel().make_description(notif, False) |
|
109 | 112 | type_ = type_ |
|
110 | 113 | email_body = body |
General Comments 0
You need to be logged in to leave comments.
Login now