Skip to content

Commit

Permalink
don't send notifications to users with invalid mail address
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed May 17, 2024
1 parent d0ae64b commit 3559493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephios/core/services/notifications/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def should_send(cls, notification):
def user_prefers_sending(cls, notification):
if not notification.user:
return True
if not notification.user.is_active:
if not notification.user.is_active or notification.user.email_invalid:
return False
if (
acting_user := notification.data.get("acting_user", None)
Expand Down

0 comments on commit 3559493

Please sign in to comment.