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