hg
This commit is contained in:
parent
332dc74dcc
commit
5c4211c6a8
1 changed files with 0 additions and 3 deletions
|
@ -233,9 +233,6 @@ def edit_post(pid, v):
|
|||
if not p.author_id == v.id:
|
||||
abort(403)
|
||||
|
||||
if p.is_banned:
|
||||
abort(403)
|
||||
|
||||
body = request.form.get("body", "")
|
||||
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF|9999))', body, re.MULTILINE): body = body.replace(i.group(1), f'})')
|
||||
with CustomRenderer() as renderer: body_md = renderer.render(mistletoe.Document(body))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue