forked from rDrama/rDrama
master
parent
ab5dab0516
commit
f067ca4a24
|
@ -545,8 +545,9 @@ def api_is_available(name, v):
|
||||||
|
|
||||||
@app.get("/id/<id>")
|
@app.get("/id/<id>")
|
||||||
def user_id(id):
|
def user_id(id):
|
||||||
|
try: id = int(id)
|
||||||
user = get_account(int(id))
|
except: abort(404)
|
||||||
|
user = get_account(id)
|
||||||
return redirect(user.url)
|
return redirect(user.url)
|
||||||
|
|
||||||
@app.get("/u/<username>")
|
@app.get("/u/<username>")
|
||||||
|
|
Loading…
Reference in New Issue