From cef106827abad4f73ecd143b27d653bfe8f748e4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 12 Jan 2022 00:23:41 +0200 Subject: [PATCH] bb --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index e1c01bfcb..67303b6fb 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -565,7 +565,7 @@ def api_is_available(name, v): @app.get("/id/") @auth_required -def user_id(id): +def user_id(id, v): try: id = int(id) except: abort(404) user = get_account(id) @@ -573,7 +573,7 @@ def user_id(id): @app.get("/u/") @auth_required -def redditor_moment_redirect(username): +def redditor_moment_redirect(username, v): return redirect(f"/@{username}") @app.get("/@/followers")