master
Aevann1 2022-02-03 13:55:54 +02:00
parent eba8eb5210
commit 7c11aa3b97
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
for tag in soup.find_all("img"): 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["class"] = "in-comment-image"
tag["loading"] = "lazy" tag["loading"] = "lazy"
tag["data-src"] = tag["src"] tag["data-src"] = tag["src"]