From d998866bcd206fe80ac3cebbf3ffec22fb6bffa0 Mon Sep 17 00:00:00 2001 From: Sylvain Lehmann <sylvain@lehmann.dev> Date: Mon, 28 Jun 2021 14:39:24 +0200 Subject: [PATCH] filter type --- djangoldp_notification/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index a782aad..dc1829f 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -228,7 +228,7 @@ def send_email_on_notification(sender, instance, created, **kwargs): and instance.summary \ and getattr(settings,'JABBER_DEFAULT_HOST',False) \ and instance.user.email \ - and instance.emailNotificationTemplate == 'default': + and instance.type in ('Message', 'Mention'): # get author name, and store in who try: # local author -- GitLab