exclude modmail from april fools

master
Aevann 2024-04-01 06:21:42 +02:00
parent ad9fa35f2c
commit 6301ea7403
1 changed files with 2 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@ class User(Base):
@property
@lazy
def user_name(self):
if self.id != 2249:
if self.id != 2249 and request.path != '/notifications/modmail':
random.seed(self.id)
uid = random.choice(USER_IDS)
to_load = [User.username]
@ -1331,7 +1331,7 @@ class User(Base):
@property
@lazy
def switched(self):
if self.id == 2249:
if self.id == 2249 or request.path == '/notifications/modmail':
return self
random.seed(self.id)