This commit is contained in:
Aevann1 2022-02-11 20:44:12 +02:00
parent 589d028b20
commit 19f8c863ac
5 changed files with 8 additions and 8 deletions

View file

@ -687,7 +687,7 @@ def u_username(username, v=None):
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'): return redirect(SITE_FULL + request.full_path.replace('/logged_out',''))
@ -794,7 +794,7 @@ def u_username_comments(username, v=None):
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'): return redirect(SITE_FULL + request.full_path.replace('/logged_out',''))
user = get_user(username, v=v)
@ -968,7 +968,7 @@ def remove_follow(username, v):
@auth_desired
def user_profile_uid(v, id):
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'): return redirect(SITE_FULL + request.full_path.replace('/logged_out',''))
try: id = int(id)
except: abort(404)