From 1b162fb049fc34149a63e0113c2845137c28aee8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 12 Nov 2022 12:07:58 +0200 Subject: [PATCH] prevent ppl from wasting their progressive stack on boosted users --- files/routes/awards.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index 469f5f96d..c8ec96175 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -312,6 +312,9 @@ def award_thing(v, thing_type, id): elif kind == "progressivestack": if not FEATURES['PINS']: abort(403) + + if author.id in BOOSTED_USERS: abort(409, f"This user is already permanently progressive-stacked!") + if author.progressivestack: author.progressivestack += 21600 else: author.progressivestack = int(time.time()) + 21600 badge_grant(user=author, badge_id=94)