From 9a49b669409b99ad8f53333d8824ea8632a4b481 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 23 Dec 2022 23:42:12 +0200 Subject: [PATCH] fix 500 error --- files/helpers/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 30f298793..dd5b124d7 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -460,7 +460,7 @@ 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.age < UNDER_SIEGE_AGE_THRESHOLD and not v.admin_level >= PERMS['SITE_BYPASS_UNDER_SIEGE_MODE']: + if not v.shadowbanned and v.age < UNDER_SIEGE_AGE_THRESHOLD and not v.admin_level >= PERMS['SITE_BYPASS_UNDER_SIEGE_MODE']: v.shadowbanned = AUTOJANNY_ID ma = ModAction(