test smth

master
Aevann 2023-07-25 21:52:25 +03:00
parent 125db43341
commit ce3e62b128
1 changed files with 2 additions and 0 deletions

View File

@ -870,6 +870,8 @@ def userpagelisting(user:User, v=None, page:int=1, sort="new", t="all"):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
@auth_required @auth_required
def u_username_wall(v:Optional[User], username:str): def u_username_wall(v:Optional[User], username:str):
if v.id == 1:
print('fuck', flush=True)
u = get_user(username, v=v, include_blocks=True) u = get_user(username, v=v, include_blocks=True)
if username != u.username: if username != u.username:
return redirect(f"/@{u.username}") return redirect(f"/@{u.username}")