forked from MarseyWorld/MarseyWorld
Redirect cuts off end of url for username redirect (#326)
* Redirect cuts off end of url for username redirect username redirect cuts off end of url, For example: Username: faygo_sucks Old_username: geese_suck Behavior: "https://rdrama.net/@geese_suck" -> "https://rdrama.net/@faygo_suck" Expected Behavior: "https://rdrama.net/@geese_suck" -> "https://rdrama.net/@faygo_sucks" * Update users.pymaster
parent
5aff344efe
commit
3c506d768c
|
@ -922,7 +922,7 @@ def u_username(username, v=None):
|
|||
|
||||
|
||||
if username != u.username:
|
||||
return redirect(SITE_FULL + request.full_path.replace(username, u.username)[:-1])
|
||||
return redirect(SITE_FULL + request.full_path.replace(username, u.username))
|
||||
|
||||
if u.reserved:
|
||||
if request.headers.get("Authorization") or request.headers.get("xhr") or request.path.endswith(".json"):
|
||||
|
|
Loading…
Reference in New Issue