remotes/1693045480750635534/spooky-22
Aevann1 2021-08-21 18:27:23 +02:00
parent bb8dffcad9
commit e5cfcd8405
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def sanitize(sanitized):
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
for i in re.finditer('https://i.imgur.com/((.*?)\.(jpg|png|jpeg))', sanitized):
for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
sanitized = bleach.Cleaner(tags=_allowed_tags,