From 3e6e1fdcc8ca518efee201939b382a766499fba7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Jul 2023 19:42:16 +0300 Subject: [PATCH] put check_for_alts in under_siege flow --- files/helpers/actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 5c98fcf50..79cf025e0 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -23,6 +23,8 @@ from files.helpers.sanitize import * from files.helpers.settings import get_setting from files.helpers.slots import check_slots_command +from files.routes.routehelpers import check_for_alts + post_target_type = Union[Post, User] def _archiveorg(url): @@ -513,6 +515,9 @@ def execute_under_siege(v:User, target:Optional[Union[Post, Comment]], body, kin unshadowbannedcels = [x[0] for x in g.db.query(ModAction.target_user_id).filter_by(kind='unshadowban').all()] if v.id in unshadowbannedcels: return + check_for_alts(v) + if v.shadowbanned: return + v.shadowbanned = AUTOJANNY_ID v.ban_reason = "Under Siege" g.db.add(v)