forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-08 23:37:31 +02:00
parent ab5dab0516
commit f067ca4a24
1 changed files with 3 additions and 2 deletions

View File

@ -545,8 +545,9 @@ def api_is_available(name, v):
@app.get("/id/<id>")
def user_id(id):
user = get_account(int(id))
try: id = int(id)
except: abort(404)
user = get_account(id)
return redirect(user.url)
@app.get("/u/<username>")