fds
This commit is contained in:
parent
ca8498eb09
commit
8e61d479b0
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue