forked from MarseyWorld/MarseyWorld
dffd
parent
bb8dffcad9
commit
e5cfcd8405
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue