diff --git a/users/models.py b/users/models.py index 3f752c34..cde3c8f4 100644 --- a/users/models.py +++ b/users/models.py @@ -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):