bbbbbbbbbbbbbb

This commit is contained in:
Aevann1 2022-01-16 02:10:33 +02:00
parent a0b11d9f8a
commit 83d6bf1ad7
3 changed files with 10 additions and 2 deletions

View file

@ -873,9 +873,13 @@ def remove_follow(username, v):
@app.get("/uid/<id>/pic")
@app.get("/uid/<id>/pic/profile")
@app.get("/logged_out/uid/<id>/pic")
@limiter.exempt
@auth_desired
def user_profile_uid(v, id):
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
try: id = int(id)
except:
try: id = int(id, 36)