forked from MarseyWorld/MarseyWorld
master
parent
ab5dab0516
commit
f067ca4a24
|
@ -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>")
|
||||
|
|
Loading…
Reference in New Issue