From 40f3be00e4b0eaf255c2e93d3880d28777aac087 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 4 Sep 2021 03:09:19 +0200 Subject: [PATCH] fd --- files/routes/front.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 2ad3adfe3d..fdd735a210 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -247,7 +247,7 @@ def front_all(v): - if not v and request.path == "/": return redirect("/logged_out") + if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect("/logged_out") if v and "logged_out" in request.full_path: v = None diff --git a/files/routes/posts.py b/files/routes/posts.py index d99ae69f96..e0eb4003c1 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -51,7 +51,7 @@ def submit_get(v): @auth_desired def post_id(pid, anything=None, v=None): - if not v and "logged_out" not in request.path: return redirect(f"/logged_out/post/{pid}") + if not v and "logged_out" not in request.path and not request.headers.get("Authorization"): return redirect(f"/logged_out/post/{pid}") if v and "logged_out" in request.full_path: v = None