1
0
Fork 0

Fixes creating notifications for auto-moderation reports

This commit is contained in:
Mouse Reeve 2022-09-19 11:11:08 -07:00
parent 6947f3b787
commit 37dacaff6f
2 changed files with 6 additions and 1 deletions

View file

@ -68,7 +68,7 @@ def automod_task():
notification, _ = notification_model.objects.get_or_create(
user=admin, notification_type=notification_model.REPORT, read=False
)
notification.related_repors.add(reports)
notification.related_reports.set(reports)
def automod_users(reporter):