Show More
@@ -117,6 +117,8 b' class NotificationModel(BaseModel):' | |||||
117 | # add mentioned users into recipients |
|
117 | # add mentioned users into recipients | |
118 | final_recipients = set(recipients_objs).union(mention_recipients) |
|
118 | final_recipients = set(recipients_objs).union(mention_recipients) | |
119 |
|
119 | |||
|
120 | # No need to render email if we are sending just notification | |||
|
121 | if with_email: | |||
120 | (subject, email_body, email_body_plaintext) = \ |
|
122 | (subject, email_body, email_body_plaintext) = \ | |
121 | EmailNotificationModel().render_email(notification_type, **email_kwargs) |
|
123 | EmailNotificationModel().render_email(notification_type, **email_kwargs) | |
122 |
|
124 |
General Comments 0
You need to be logged in to leave comments.
Login now