fix 404
This commit is contained in:
parent
7d06d50359
commit
14b02c93f6
1 changed files with 2 additions and 4 deletions
|
@ -168,15 +168,13 @@ class User(AbstractUser):
|
|||
@property
|
||||
def avatar(self):
|
||||
if self.mastodon_account:
|
||||
return self.mastodon_account.get("avatar") or static(
|
||||
"static/img/avatar.svg"
|
||||
)
|
||||
return self.mastodon_account.get("avatar") or static("img/avatar.svg")
|
||||
if self.email:
|
||||
return (
|
||||
"https://www.gravatar.com/avatar/"
|
||||
+ hashlib.md5(self.email.lower().encode()).hexdigest()
|
||||
)
|
||||
return static("static/img/avatar.svg")
|
||||
return static("img/avatar.svg")
|
||||
|
||||
@property
|
||||
def handler(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue