forked from rDrama/rDrama
Restrict New User hat to rDrama.
parent
c37c8be209
commit
0254ff6567
|
@ -261,7 +261,7 @@ class User(Base):
|
||||||
if self.is_cakeday:
|
if self.is_cakeday:
|
||||||
return '/i/hats/Cakeday.webp'
|
return '/i/hats/Cakeday.webp'
|
||||||
|
|
||||||
if self.age < 86400 * 7:
|
if self.age < NEW_USER_HAT_AGE:
|
||||||
return '/i/new-user.webp'
|
return '/i/new-user.webp'
|
||||||
|
|
||||||
if self.forced_hat:
|
if self.forced_hat:
|
||||||
|
|
|
@ -394,6 +394,7 @@ TRUESCORE_GHOST_LIMIT = 0
|
||||||
|
|
||||||
LOGGEDIN_ACTIVE_TIME = 15 * 60
|
LOGGEDIN_ACTIVE_TIME = 15 * 60
|
||||||
PFP_DEFAULT_MARSEY = True
|
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
|
NOTIFICATION_SPAM_AGE_THRESHOLD = 0.5 * 86400
|
||||||
COMMENT_SPAM_LENGTH_THRESHOLD = 50
|
COMMENT_SPAM_LENGTH_THRESHOLD = 50
|
||||||
|
|
||||||
|
@ -490,9 +491,9 @@ if SITE == 'rdrama.net':
|
||||||
NOTIFICATION_THREAD = 6489
|
NOTIFICATION_THREAD = 6489
|
||||||
|
|
||||||
CHAT_LENGTH_LIMIT = 200
|
CHAT_LENGTH_LIMIT = 200
|
||||||
|
|
||||||
TRUESCORE_CHAT_LIMIT = 10
|
TRUESCORE_CHAT_LIMIT = 10
|
||||||
TRUESCORE_GHOST_LIMIT = 10
|
TRUESCORE_GHOST_LIMIT = 10
|
||||||
|
NEW_USER_HAT_AGE = 7 * 86400
|
||||||
|
|
||||||
HOLE_COST = 50000
|
HOLE_COST = 50000
|
||||||
HOLE_INACTIVITY_DELETION = True
|
HOLE_INACTIVITY_DELETION = True
|
||||||
|
|
Loading…
Reference in New Issue