Fix #303: remove WebP mangling of imgur links.
This commit is contained in:
parent
e097dc1e70
commit
256a43527a
2 changed files with 0 additions and 4 deletions
|
@ -201,8 +201,6 @@ def sanitize(sanitized, alert=False, comment=False, edit=False):
|
|||
if not (g.v and g.v.any_block_exists(u)) or g.v.admin_level > 1:
|
||||
sanitized = sanitized.replace(i.group(0), f'''{i.group(1)}<a href="/id/{u.id}"><img loading="lazy" src="/pp/{u.id}">@{u.username}</a>''', 1)
|
||||
|
||||
sanitized = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=high', sanitized)
|
||||
|
||||
soup = BeautifulSoup(sanitized, 'lxml')
|
||||
|
||||
if app.config['MULTIMEDIA_EMBEDDING_ENABLED']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue