gfgf
This commit is contained in:
parent
e791efc84d
commit
9bd70a658a
1 changed files with 4 additions and 1 deletions
|
@ -97,7 +97,10 @@ def settings_profile_post(v):
|
|||
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)
|
||||
|
||||
if len(bio_html) > 10000:
|
||||
return render_template("settings_profile.html",
|
||||
v=v,
|
||||
error="Your bio is too long")
|
||||
# Run safety filter
|
||||
bans = filter_comment_html(bio_html)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue