gdf
This commit is contained in:
parent
d2cfe31886
commit
cc5bf32a11
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue