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