forked from MarseyWorld/MarseyWorld
gdf
parent
4fa997866c
commit
41e0b97fef
|
@ -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 "pp20" not in tag.get("class", ""):
|
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"]
|
||||||
|
|
Loading…
Reference in New Issue