From 0a92b53e1693fe04397ee3063c62163733fb7a00 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 17 Nov 2024 23:40:09 +0200 Subject: [PATCH] dont propagate ban awards and unban awards to alts who have a deflector --- files/routes/awards.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index 04c591b37..74a7b31dd 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -378,6 +378,7 @@ def award_thing(v, thing_type, id): if SITE_NAME == 'WPD': for x in get_alt_graph(author.id): + if x.deflector: continue x.ban(reason=ban_reason, days=quantity, modlog=False, original_user=author) one_month_ago = time.time() - 2592000 if x.last_active > one_month_ago: @@ -398,6 +399,8 @@ def award_thing(v, thing_type, id): if SITE_NAME == 'WPD': for x in get_alt_graph(author.id): + if x.deflector: continue + if not x.is_suspended or not x.unban_utc or not x.ban_reason.startswith('Ban award'): continue