This commit is contained in:
Aevann1 2022-03-17 17:14:22 +02:00
parent 98b683615b
commit a08a2cca5b

View file

@ -890,6 +890,11 @@ def remove_follow(username, v):
@limiter.exempt
@auth_desired
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 v and request.path.startswith('/logged_out'): v = None