This commit is contained in:
Aevann1 2022-03-17 18:30:13 +02:00
parent a41b80c1f0
commit 155d56d012
3 changed files with 11 additions and 19 deletions

View file

@ -481,12 +481,6 @@ class User(Base):
if self.profileurl:
if self.profileurl.startswith('/'): return SITE_FULL + self.profileurl
return self.profileurl
if SITE_NAME == 'Drama':
self.profileurl = '/e/' + random.choice(marseys_const) + '.webp'
try: g.db.add(self)
except: pass
g.db.commit()
return self.profileurl
return f"{SITE_FULL}/static/assets/images/default-profile-pic.webp?v=1008"
@lazy