Merge branch 'master' into constants

This commit is contained in:
atrc445 2021-08-21 23:10:23 +02:00
commit 4683ab2ae3
130 changed files with 266 additions and 272 deletions

View file

@ -82,7 +82,7 @@ def settings_profile_post(v):
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF|9999))', bio, re.MULTILINE): bio = bio.replace(i.group(1), f'![]({i.group(1)})')
bio = bio.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
with CustomRenderer() as renderer: bio_html = renderer.render(mistletoe.Document(bio))
bio_html = sanitize(bio_html, linkgen=True)
bio_html = sanitize(bio_html)
# Run safety filter
bans = filter_comment_html(bio_html)