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"]