diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 7fd2e6937f..fef555694f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -122,7 +122,6 @@ def sanitize(text, linkgen=False, flair=False): url = tag.get("src", "") if not url: continue - netloc = urlparse(url).netloc if "profile-pic-20" not in tag.get("class", ""): #print(tag.get('class')) @@ -192,13 +191,13 @@ def sanitize(text, linkgen=False, flair=False): for i in re.finditer('{url}' + replacing = f'{url}' htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('{url}' + replacing = f'{url}' htmlsource = f'' sanitized = sanitized.replace(replacing, htmlsource)