mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-22 00:14:10 +00:00
Fix edit alerts based on abuse filter results when a filter took multiple actions
This commit is contained in:
parent
26394714d8
commit
ecfc859392
|
@ -188,7 +188,7 @@ def edit_alerts_hook(message, metadata, context, change):
|
|||
if af_action and change["action"] not in af_action:
|
||||
raise RequirementNotMet
|
||||
req_result = requirement.get("result", [])
|
||||
if req_result and change["result"] not in req_result:
|
||||
if req_result and not list(set(change["result"].split(",")) & set(req_result)):
|
||||
raise RequirementNotMet
|
||||
except RequirementNotMet:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue