forked from MarseyWorld/MarseyWorld
remove base 36 crap
parent
4aedbc9b2e
commit
d3aea510f8
|
@ -913,12 +913,7 @@ def remove_follow(username, v):
|
||||||
@cache.memoize(timeout=86400)
|
@cache.memoize(timeout=86400)
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
def user_profile_uid(id):
|
def user_profile_uid(id):
|
||||||
try: id = int(id)
|
x = get_account(id)
|
||||||
except:
|
|
||||||
try: id = int(id, 36)
|
|
||||||
except: abort(404)
|
|
||||||
|
|
||||||
x=get_account(id)
|
|
||||||
return redirect(x.profile_url)
|
return redirect(x.profile_url)
|
||||||
|
|
||||||
@app.get("/@<username>/pic")
|
@app.get("/@<username>/pic")
|
||||||
|
|
Loading…
Reference in New Issue