From 426f4b3d8b368b1268c8d9428817d05392d0d628 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 9 Aug 2025 12:30:42 +0200 Subject: [PATCH] fix: Make sure e-mail is sent when comment is reported --- src/fellchensammlung/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/mail.py b/src/fellchensammlung/mail.py index 6d2230a..a60516a 100644 --- a/src/fellchensammlung/mail.py +++ b/src/fellchensammlung/mail.py @@ -17,7 +17,7 @@ def notify_mods_new_report(report, notification_type): for moderator in User.objects.filter(trust_level__gt=TrustLevel.MODERATOR): if notification_type == NotificationTypeChoices.NEW_REPORT_AN: title = _("Vermittlung gemeldet") - elif notification_type == NotificationTypeChoices.NEW_COMMENT: + elif notification_type == NotificationTypeChoices.NEW_REPORT_COMMENT: title = _("Kommentar gemeldet") else: raise NotImplementedError