forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-30 08:05:38 +02:00
parent 68d8bd8e6c
commit 22a479484b
1 changed files with 4 additions and 2 deletions

View File

@ -529,10 +529,12 @@ def user_profile(username):
@app.route("/uid/<uid>/pic/profile")
@limiter.exempt
def user_profile_uid(uid):
try: uid = int(uid)
except: uid = int(uid, 36)
try: uid = int(uid, 36)
except: uid = int(uid)
x=get_account(uid)
return redirect(x.profile_url)
@app.get("/@<username>/saved/posts")
@app.get("/api/v1/saved/posts")
@auth_required