From 7778911129e806c108602c55eec7b261c2c7a692 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 12 Jan 2022 00:57:05 +0200 Subject: [PATCH] bb --- files/routes/comments.py | 2 +- files/routes/front.py | 2 +- files/routes/posts.py | 2 +- files/routes/users.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index d3bd18581..47d5f863d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -25,7 +25,7 @@ beams_client = PushNotifications( @app.get("/post///") @app.get("/logged_out/comment/") @app.get("/logged_out/post///") -@auth_required +@auth_desired def post_pid_comment_cid(cid, pid=None, anything=None, v=None): if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}") diff --git a/files/routes/front.py b/files/routes/front.py index f09bcb313..bad1917eb 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -121,7 +121,7 @@ def notifications(v): @app.get("/") @app.get("/logged_out") -@auth_required +@auth_desired def front_all(v): if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}") diff --git a/files/routes/posts.py b/files/routes/posts.py index 54aba7f85..2b6274dfd 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -96,7 +96,7 @@ def submit_get(v): @app.get("/post//") @app.get("/logged_out/post/") @app.get("/logged_out/post//") -@auth_required +@auth_desired def post_id(pid, anything=None, v=None): if not v or v.oldsite: template2 = '' else: template2 = 'CHRISTMAS/' diff --git a/files/routes/users.py b/files/routes/users.py index 67303b6fb..55352ab12 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -611,7 +611,7 @@ def visitors(v): @app.get("/@") @app.get("/logged_out/@") -@auth_required +@auth_desired def u_username(username, v=None): @@ -732,7 +732,7 @@ def u_username(username, v=None): @app.get("/@/comments") @app.get("/logged_out/@/comments") -@auth_required +@auth_desired def u_username_comments(username, v=None):