fix: Make sure e-mail is sent when comment is reported

This commit is contained in:
2025-08-09 12:30:42 +02:00
parent 3604233507
commit 426f4b3d8b

View File

@@ -17,7 +17,7 @@ def notify_mods_new_report(report, notification_type):
for moderator in User.objects.filter(trust_level__gt=TrustLevel.MODERATOR): for moderator in User.objects.filter(trust_level__gt=TrustLevel.MODERATOR):
if notification_type == NotificationTypeChoices.NEW_REPORT_AN: if notification_type == NotificationTypeChoices.NEW_REPORT_AN:
title = _("Vermittlung gemeldet") title = _("Vermittlung gemeldet")
elif notification_type == NotificationTypeChoices.NEW_COMMENT: elif notification_type == NotificationTypeChoices.NEW_REPORT_COMMENT:
title = _("Kommentar gemeldet") title = _("Kommentar gemeldet")
else: else:
raise NotImplementedError raise NotImplementedError