dffd
This commit is contained in:
parent
85e8c00c0f
commit
9e015c7818
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue