jesus christ im an idiot

This commit is contained in:
Aevann1 2022-03-03 22:22:23 +02:00
parent f06fee1414
commit 87e4bb59df
4 changed files with 13 additions and 0 deletions

View file

@ -689,6 +689,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
u = get_user(username, v=v)
@ -786,6 +787,8 @@ 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
user = get_user(username, v=v)
if username != user.username: return redirect(f'{SITE_FULL}/@{user.username}/comments')
@ -971,6 +974,8 @@ def remove_follow(username, v):
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
x=get_account(id)
return redirect(x.profile_url)