Mercurial > kallithea
diff rhodecode/model/notification.py @ 2391:91fae60bf2b6 codereview
merge with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 05 Jun 2012 21:22:23 +0200 |
parents | e5c0f201ca0b 7d517a35b6c9 |
children | d3ac7491a5c8 |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Wed May 30 23:12:24 2012 +0200 +++ b/rhodecode/model/notification.py Tue Jun 05 21:22:23 2012 +0200 @@ -103,8 +103,11 @@ 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