From d7455e3da64f96d2e681042a5eff8670b4b43e29 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 11:14:08 +0200 Subject: [PATCH] dffds --- files/helpers/sanitize.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 0bd71fef9..565d5d100 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -134,6 +134,8 @@ def sanitize(sanitized, noimages=False): tag["style"] = "max-height: 100px; max-width: 100%;" tag["class"] = "in-comment-image rounded-sm my-2" tag["loading"] = "lazy" + tag["data-src"] = tag["src"] + tag["src"] = "" link = soup.new_tag("a") link["href"] = tag["src"]