Fixes creating notifications for auto-moderation reports
This commit is contained in:
parent
6947f3b787
commit
37dacaff6f
2 changed files with 6 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue