fd
This commit is contained in:
parent
76f2312c93
commit
d076a4f6ee
4 changed files with 57 additions and 19 deletions
|
@ -289,7 +289,7 @@ def api_comment(v):
|
|||
abort(413)
|
||||
|
||||
if 'pcmemes.net' in request.host: url = upload_ibb(file=file)
|
||||
else: url = upload(file=file)
|
||||
else: url = upload_imgur(file=file)
|
||||
|
||||
body = request.form.get("body") + f"\n"
|
||||
body = body.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")
|
||||
|
@ -703,7 +703,7 @@ def edit_comment(cid, v):
|
|||
abort(413)
|
||||
|
||||
if 'pcmemes.net' in request.host: url = upload_ibb(file=file)
|
||||
else: url = upload(file=file)
|
||||
else: url = upload_imgur(file=file)
|
||||
|
||||
body += f"\n"
|
||||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue