Restrict New User hat to rDrama.

pull/24/head
Snakes 2022-11-23 20:28:39 -05:00 committed by geese_suck
parent 2800e5dfe6
commit b1398d2ed6
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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