diff --git a/files/classes/user.py b/files/classes/user.py index c529257dd..321664cf3 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -267,6 +267,7 @@ class User(Base): @property @lazy def bio_html_eager(self): + if self.bio_html == None: return '' return self.bio_html.replace('data-src', 'src').replace('src="/assets/images/loading.webp"', '') @property @@ -434,7 +435,7 @@ class User(Base): 'profile_url': self.profile_url, 'bannerurl': self.bannerurl, 'bio': self.bio, - 'bio_html': self.bio_html, + 'bio_html': self.bio_html_eager, 'flair': self.customtitle } diff --git a/files/templates/comments.html b/files/templates/comments.html index 6b45ccf30..0cfd415e0 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -27,54 +27,46 @@ } - -{% macro single_comment(c, level=1) %} - -