From be31f1baa7fe7ce8bd0fc87387d96142b645397d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 11:19:26 +0200 Subject: [PATCH] dsfdfs --- files/helpers/sanitize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)