forked from mirrors/bookwyrm
Only scan local data
This commit is contained in:
parent
84ef214ca1
commit
689be8c94b
2 changed files with 3 additions and 1 deletions
|
@ -93,6 +93,7 @@ def automod_users(reporter):
|
|||
users = User.objects.filter(
|
||||
reduce(operator.or_, (Q(**f) for f in filters)),
|
||||
is_active=True,
|
||||
local=True,
|
||||
report__isnull=True, # don't flag users that already have reports
|
||||
).distinct()
|
||||
|
||||
|
@ -127,6 +128,7 @@ def automod_statuses(reporter):
|
|||
statuses = status_model.objects.filter(
|
||||
reduce(operator.or_, (Q(**f) for f in filters)),
|
||||
deleted=False,
|
||||
local=True,
|
||||
report__isnull=True, # don't flag statuses that already have reports
|
||||
).distinct()
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<div class="notification content">
|
||||
<p>
|
||||
{% trans "Auto-moderation rules will create reports for any user or status with fields matching the provided string." %}
|
||||
{% trans "Auto-moderation rules will create reports for any local user or status with fields matching the provided string." %}
|
||||
{% trans "Users or statuses that have already been reported (regardless of whether the report was resolved) will not be flagged." %}
|
||||
{% trans "At this time, reports are <em>not</em> being generated automatically, and you must manually trigger a scan." %}
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue