From 33d44904b8cdc75131acee1709ea2f50db2504c7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Dec 2021 00:49:39 +0200 Subject: [PATCH] fdsfsd --- files/classes/user.py | 3 +- files/templates/comments.html | 61 +++++++++++-------------- files/templates/submission.html | 50 +------------------- files/templates/submission_listing.html | 35 ++++++-------- 4 files changed, 45 insertions(+), 104 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index c529257dd4..321664cf37 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 6b45ccf30d..0cfd415e02 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -27,54 +27,46 @@ } - -{% macro single_comment(c, level=1) %} - -