From 417f09690f4c3017c729324279a86e36d0e9c229 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 18 Nov 2021 15:08:00 -0800 Subject: [PATCH] Include admin and moderator in reporting email --- bookwyrm/emailing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/emailing.py b/bookwyrm/emailing.py index fab1a2d5..08fd9ef8 100644 --- a/bookwyrm/emailing.py +++ b/bookwyrm/emailing.py @@ -48,7 +48,7 @@ def moderation_report_email(report): data["reportee"] = report.user.localname or report.user.username data["report_link"] = report.remote_id - for admin in models.User.objects.filter(groups__name="moderator"): + for admin in models.User.objects.filter(groups__name__in=["admin", "moderator"]): data["user"] = admin.display_name send_email.delay(admin.email, *format_email("moderation_report", data))