sneed
This commit is contained in:
parent
fe8c633f30
commit
e69c9a6842
1 changed files with 2 additions and 5 deletions
|
@ -628,11 +628,8 @@ class User(Base, Stndrd, Age_times):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def profile_url(self):
|
def profile_url(self):
|
||||||
if self.has_profile and not self.is_deleted:
|
if self.has_profile and self.profileurl:
|
||||||
if self.profileurl:
|
return self.profileurl
|
||||||
return self.profileurl
|
|
||||||
else:
|
|
||||||
return f"https://s3.eu-central-1.amazonaws.com/i.drama.ga/uid/{self.base36id}/profile-{self.profile_nonce}.png"
|
|
||||||
else:
|
else:
|
||||||
return self.defaultpicture()
|
return self.defaultpicture()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue