This commit is contained in:
Aevann1 2021-08-13 03:55:23 +02:00
parent b704d4ab01
commit 4516e9b0f9
3 changed files with 8 additions and 0 deletions

View file

@ -281,6 +281,8 @@ def u_username(username, v=None):
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}")
if v and "logged_out" in request.path: return redirect(f"/@{username}")
# username is unique so at most this returns one result. Otherwise 404
# case insensitive search
@ -400,6 +402,8 @@ def u_username_comments(username, v=None):
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}/comments")
if v and "logged_out" in request.path: return redirect(f"/@{username}/comments")
# username is unique so at most this returns one result. Otherwise 404
# case insensitive search