forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-30 08:03:27 +02:00
parent e8b0f2ce2e
commit e7aa77f79d
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -120,7 +120,8 @@ def api_vote_comment(comment_id, new, v):
new = int(new)
if isinstance(comment_id, str): comment_id = int(comment_id, 36)
try: uid = int(comment_id)
except: uid = int(comment_id, 36)
comment = get_comment(comment_id)