master
Aevann1 2022-03-17 17:14:22 +02:00
parent a5841e2519
commit 762b93df76
1 changed files with 5 additions and 0 deletions

View File

@ -890,6 +890,11 @@ def remove_follow(username, v):
@limiter.exempt @limiter.exempt
@auth_desired @auth_desired
def user_profile_uid(v, id): def user_profile_uid(v, id):
try: id = int(id)
except:
try: id = int(id, 36)
except: abort(404)
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}") if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
if v and request.path.startswith('/logged_out'): v = None if v and request.path.startswith('/logged_out'): v = None