forked from MarseyWorld/MarseyWorld
fsd
parent
eba8eb5210
commit
7c11aa3b97
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue