remotes/1693045480750635534/spooky-22
Aevann1 2021-09-24 22:08:40 +02:00
parent 1eca0337cf
commit 14f3e7b276
4 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ beams_client = PushNotifications(
@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/comment/{cid}")
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
if v and request.full_path.startswith('/logged_out'): v = None

View File

@ -202,7 +202,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
@auth_desired
def front_all(v):
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect("/logged_out")
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}")
if v and "logged_out" in request.full_path: v = None

View File

@ -86,7 +86,7 @@ def submit_get(v):
@auth_desired
def post_id(pid, anything=None, v=None):
if not v and not request.path.startswith('/logged_out') and not request.headers.get("Authorization"): return redirect(f"/logged_out/post/{pid}")
if not v and not request.path.startswith('/logged_out') and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}")
if v and request.full_path.startswith('/logged_out'): v = None

View File

@ -391,7 +391,7 @@ def visitors(v):
def u_username(username, v=None):
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out{request.full_path}")
if v and "logged_out" in request.full_path: v = None
@ -504,7 +504,7 @@ def u_username(username, v=None):
def u_username_comments(username, v=None):
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/@{username}/comments")
if not v and "logged_out" not in request.path: return redirect(f"/logged_out{request.full_path}")
if v and "logged_out" in request.full_path: v = None