From 7c11aa3b97f59f3cf602313d557cd5ef38cb77b6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 3 Feb 2022 13:55:54 +0200 Subject: [PATCH] fsd --- 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 d35d5f72c..f0d2a33b7 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 tag.get("class") != "pp20": + if tag.get("src") and tag.get("class") != ['pp20']: tag["class"] = "in-comment-image" tag["loading"] = "lazy" tag["data-src"] = tag["src"]