forked from rDrama/rDrama
1
0
Fork 0

Merge branch 'master' into mistletoe

master
kek7198 2021-12-01 12:48:43 -06:00
commit c03fddd8d3
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ def authorize(v):
def request_api_keys(v):
new_app = OauthApp(
app_name=request.values.get('name'),
app_name=request.values.get('name').replace('<',''),
redirect_uri=request.values.get('redirect_uri'),
author_id=v.id,
description=request.values.get("description")[:256]
@ -131,7 +131,7 @@ def admin_app_approve(v, aid):
g.db.commit()
return {"message": f"{app.app_name} approved"}
return {"message": f"Application approved"}
@app.post("/admin/app/revoke/<aid>")

View File

@ -563,7 +563,7 @@ def submit_post(v):
if request.content_length > 8 * 1024 * 1024: return "Max file size is 8 MB.", 413
elif request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
title = request.values.get("title", "").strip()
title = request.values.get("title", "").strip()[:500]
url = request.values.get("url", "").strip()
if v.agendaposter and not v.marseyawarded:
@ -800,7 +800,7 @@ def submit_post(v):
body=body[:10000],
body_html=body_html,
embed_url=embed,
title=title,
title=title[:500],
title_html=title_html
)