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):