remotes/1693045480750635534/spooky-22
Aevann1 2021-11-04 18:15:40 +02:00
parent 0058ce4354
commit 76af9207ef
1 changed files with 5 additions and 1 deletions

View File

@ -178,6 +178,8 @@ def settings_profile_post(v):
msg="Your sig has been updated.")
if request.values.get("friends"):
friends = request.values.get("friends")[:500]
@ -194,7 +196,7 @@ def settings_profile_post(v):
if ban.reason: reason += f" {ban.reason}"
return {"error": reason}, 401
if len(friends_html) > 1000:
if len(friends_html) > 2000:
return render_template("settings_profile.html",
v=v,
error="Your top 8 friends list is too long")
@ -208,6 +210,8 @@ def settings_profile_post(v):
msg="Your top 8 friends have been updated.")
if request.values.get("bio") or request.files.get('file') and request.headers.get("cf-ipcountry") != "T1":
bio = request.values.get("bio")[:1500]