forked from rDrama/rDrama
fdfd
parent
a552386463
commit
138e604acf
|
@ -626,6 +626,8 @@ def admin_userawards_post(v):
|
||||||
if key not in AWARDS: continue
|
if key not in AWARDS: continue
|
||||||
|
|
||||||
if value:
|
if value:
|
||||||
|
|
||||||
|
if int(value) > 10: abort(403)
|
||||||
|
|
||||||
if int(value) > 0: notify_awards[key] = int(value)
|
if int(value) > 0: notify_awards[key] = int(value)
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ def api_comment(v):
|
||||||
file.save(name)
|
file.save(name)
|
||||||
url = request.host_url[:-1] + process_image(name)
|
url = request.host_url[:-1] + process_image(name)
|
||||||
|
|
||||||
body += f"\n![]({url})"
|
body += f"\n\n![]({url})"
|
||||||
|
|
||||||
body_html = sanitize(CustomRenderer().render(mistletoe.Document(body)))
|
body_html = sanitize(CustomRenderer().render(mistletoe.Document(body)))
|
||||||
|
|
||||||
|
@ -673,7 +673,7 @@ def edit_comment(cid, v):
|
||||||
file.save(name)
|
file.save(name)
|
||||||
url = request.host_url[:-1] + process_image(name)
|
url = request.host_url[:-1] + process_image(name)
|
||||||
|
|
||||||
body += f"\n![]({url})"
|
body += f"\n\n![]({url})"
|
||||||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||||
body_html = sanitize(body_md)
|
body_html = sanitize(body_md)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue