From 510d9628228b8a1d3614fa768c10d812894d1dcf Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 22:46:13 +0200 Subject: [PATCH] under siege - dont repetitively ban the same person --- files/helpers/actions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index a3d541ffc..807da2e7c 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -433,6 +433,8 @@ def execute_antispam_comment_check(body:str, v:User): def execute_under_siege(v:User, target:Optional[Union[Submission, Comment]], body, type:str) -> bool: if not get_setting("under_siege"): return True + if v.post_count or v.comment_count: return True + if type in ('flag', 'message'): threshold = 86400 else: