fix: Make sure e-mail is sent when comment is reported
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user