Skip to content
Snippets Groups Projects
Commit d998866b authored by Sylvain Lehmann's avatar Sylvain Lehmann
Browse files

filter type

parent ceb2eb59
No related branches found
No related tags found
1 merge request!45feature: filter auto mail notification by notification type
Pipeline #11729 passed
...@@ -228,7 +228,7 @@ def send_email_on_notification(sender, instance, created, **kwargs): ...@@ -228,7 +228,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
and instance.summary \ and instance.summary \
and getattr(settings,'JABBER_DEFAULT_HOST',False) \ and getattr(settings,'JABBER_DEFAULT_HOST',False) \
and instance.user.email \ and instance.user.email \
and instance.emailNotificationTemplate == 'default': and instance.type in ('Message', 'Mention'):
# get author name, and store in who # get author name, and store in who
try: try:
# local author # local author
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment