dfdf
This commit is contained in:
parent
b704d4ab01
commit
4516e9b0f9
3 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue