sfd
This commit is contained in:
parent
5cf65563c1
commit
03e866c74c
1 changed files with 0 additions and 7 deletions
|
@ -1072,11 +1072,8 @@ def remove_follow(username, v):
|
||||||
return {"message": "Follower removed!"}
|
return {"message": "Follower removed!"}
|
||||||
|
|
||||||
@app.get("/pp/<id>")
|
@app.get("/pp/<id>")
|
||||||
@app.get("/logged_out/pp/<id>")
|
|
||||||
@app.get("/uid/<id>/pic")
|
@app.get("/uid/<id>/pic")
|
||||||
@app.get("/logged_out/uid/<id>/pic")
|
|
||||||
@app.get("/uid/<id>/pic/profile")
|
@app.get("/uid/<id>/pic/profile")
|
||||||
@app.get("/logged_out/uid/<id>/pic/profile")
|
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def user_profile_uid(v, id):
|
def user_profile_uid(v, id):
|
||||||
|
@ -1085,10 +1082,6 @@ def user_profile_uid(v, id):
|
||||||
try: id = int(id, 36)
|
try: id = int(id, 36)
|
||||||
except: abort(404)
|
except: abort(404)
|
||||||
|
|
||||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
|
||||||
|
|
||||||
if v and request.path.startswith('/logged_out'): v = None
|
|
||||||
|
|
||||||
x=get_account(id)
|
x=get_account(id)
|
||||||
return redirect(x.profile_url)
|
return redirect(x.profile_url)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue