exclude modmail from april fools
parent
ad9fa35f2c
commit
6301ea7403
|
@ -1310,7 +1310,7 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def user_name(self):
|
def user_name(self):
|
||||||
if self.id != 2249:
|
if self.id != 2249 and request.path != '/notifications/modmail':
|
||||||
random.seed(self.id)
|
random.seed(self.id)
|
||||||
uid = random.choice(USER_IDS)
|
uid = random.choice(USER_IDS)
|
||||||
to_load = [User.username]
|
to_load = [User.username]
|
||||||
|
@ -1331,7 +1331,7 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def switched(self):
|
def switched(self):
|
||||||
if self.id == 2249:
|
if self.id == 2249 or request.path == '/notifications/modmail':
|
||||||
return self
|
return self
|
||||||
|
|
||||||
random.seed(self.id)
|
random.seed(self.id)
|
||||||
|
|
Loading…
Reference in New Issue