This commit is contained in:
Aevann1 2022-01-24 22:04:23 +02:00
parent 4b34f44792
commit f46846bf9e
8 changed files with 8 additions and 8 deletions

View file

@ -433,7 +433,7 @@ class User(Base):
def profile_url(self):
if self.agendaposter: return f"{SITE_FULL}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 51)}.webp?a=1008"
if self.profileurl: return self.profileurl
if SITE_NAME == 'rdrama.net': return f"{SITE_FULL}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=1008"
if SITE_NAME == 'Drama': return f"{SITE_FULL}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=1008"
return f"{SITE_FULL}/static/assets/images/default-profile-pic.webp?a=1008"
@lazy