remove base 36 crap

master
justcool393 2022-11-14 10:10:16 -06:00
parent 4aedbc9b2e
commit d3aea510f8
1 changed files with 1 additions and 6 deletions

View File

@ -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")