diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 2c2d41fba..bf30dcc12 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -132,7 +132,7 @@ def sanitize(sanitized, noimages=False): tag["rel"] = "nofollow noopener noreferrer" tag["style"] = "max-height: 100px; max-width: 100%;" - tag["class"] = "in-comment-image rounded-sm my-2 lozard" + tag["class"] = "in-comment-image rounded-sm my-2 lozad" tag["loading"] = "lazy" tag["data-src"] = tag["src"] tag["src"] = "" @@ -167,7 +167,7 @@ def sanitize(sanitized, noimages=False): #whatever else happens with images, there are only two sets of classes allowed for tag in soup.find_all("img"): if 'profile-pic-20' not in tag.attrs.get("class",""): - tag.attrs['class']="in-comment-image rounded-sm my-2 lozard" + tag.attrs['class']="in-comment-image rounded-sm my-2 lozad" #table format for tag in soup.find_all("table"): @@ -199,7 +199,7 @@ def sanitize(sanitized, noimages=False): if emoji.startswith("!"): emoji = emoji[1:] if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - new = re.sub(f'\w*(?', new) + new = re.sub(f'\w*(?', new) elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): new = re.sub(f'\w*(?', new)