From 0254ff65676556378476b764b7bf33b05118ae35 Mon Sep 17 00:00:00 2001 From: Snakes Date: Wed, 23 Nov 2022 20:28:39 -0500 Subject: [PATCH] Restrict New User hat to rDrama. --- files/classes/user.py | 2 +- files/helpers/const.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 71d4fc5fb..a04966a66 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -261,7 +261,7 @@ class User(Base): if self.is_cakeday: return '/i/hats/Cakeday.webp' - if self.age < 86400 * 7: + if self.age < NEW_USER_HAT_AGE: return '/i/new-user.webp' if self.forced_hat: diff --git a/files/helpers/const.py b/files/helpers/const.py index 6a1440e51..a1f3d64d5 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -394,6 +394,7 @@ TRUESCORE_GHOST_LIMIT = 0 LOGGEDIN_ACTIVE_TIME = 15 * 60 PFP_DEFAULT_MARSEY = True +NEW_USER_HAT_AGE = 0 # seconds of age to show new-user forced hat NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400 COMMENT_SPAM_LENGTH_THRESHOLD = 50 @@ -490,9 +491,9 @@ if SITE == 'rdrama.net': NOTIFICATION_THREAD = 6489 CHAT_LENGTH_LIMIT = 200 - TRUESCORE_CHAT_LIMIT = 10 TRUESCORE_GHOST_LIMIT = 10 + NEW_USER_HAT_AGE = 7 * 86400 HOLE_COST = 50000 HOLE_INACTIVITY_DELETION = True