From 41e0b97fef9952e9bbf9327d7e915ae9351da96d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 3 Feb 2022 11:28:40 +0200 Subject: [PATCH] gdf --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 9e0efa811..d35d5f72c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -152,7 +152,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): for tag in soup.find_all("img"): - if tag.get("src") and "pp20" not in tag.get("class", ""): + if tag.get("src") and tag.get("class") != "pp20": tag["class"] = "in-comment-image" tag["loading"] = "lazy" tag["data-src"] = tag["src"]