diff --git a/files/classes/user.py b/files/classes/user.py index 23f6a33a4..aaa750e18 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -345,7 +345,9 @@ class User(Base): @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"', '') + return self.bio_html.replace('data-src', 'src') \ + .replace('src="/assets/images/loading.webp?v=2"', '') \ + .replace('src="/assets/images/loading.webp"', '') @property @lazy diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index aa7f3ee06..e0c30f8e0 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -221,7 +221,7 @@ def sanitize(sanitized, alert=False, edit=False): if tag.get("src") and not tag["src"].startswith('/pp/'): tag["loading"] = "lazy" tag["data-src"] = tag["src"] - tag["src"] = "/assets/images/loading.webp" + tag["src"] = "/assets/images/loading.webp?v=2" tag['alt'] = f'![]({tag["data-src"]})' tag['referrerpolicy'] = "no-referrer" diff --git a/files/templates/header.html b/files/templates/header.html index d7eeef161..8c18145b5 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -308,3 +308,5 @@ } {%- endif %} + + diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index d5cf76b37..d0584e0c2 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -347,7 +347,7 @@ {% if p.is_image and not p.over_18 and ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}
- Unable to load image + Unable to load image
{% elif p.is_video %}