forked from rDrama/rDrama
gffg
parent
e8b0f2ce2e
commit
e7aa77f79d
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue