From 14b02c93f6c50f0500a4362a60e6bb898a634d8e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 11 Jul 2023 12:54:57 -0400 Subject: [PATCH] fix 404 --- users/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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):