dfsfsd
parent
ee683e227d
commit
abb86c1035
|
@ -27,7 +27,7 @@ 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}")
|
||||
|
||||
if v and request.full_path.startswith('/logged_out'): v = None
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
try: cid = int(cid)
|
||||
except:
|
||||
|
|
|
@ -116,7 +116,7 @@ def front_all(v):
|
|||
|
||||
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('logged_out'): v = None
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
try: page = int(request.values.get("page") or 1)
|
||||
except: abort(400)
|
||||
|
|
|
@ -86,7 +86,7 @@ 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{request.full_path}")
|
||||
|
||||
if v and request.full_path.startswith('/logged_out'): v = None
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
try: pid = int(pid)
|
||||
except Exception as e: pass
|
||||
|
|
|
@ -395,9 +395,9 @@ def visitors(v):
|
|||
def u_username(username, v=None):
|
||||
|
||||
|
||||
if not v and not request.path.startswith('logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('logged_out'): v = None
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
# username is unique so at most this returns one result. Otherwise 404
|
||||
|
||||
|
@ -508,9 +508,9 @@ def u_username(username, v=None):
|
|||
def u_username_comments(username, v=None):
|
||||
|
||||
|
||||
if not v and not request.path.startswith('logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('logged_out'): v = None
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
# username is unique so at most this returns one result. Otherwise 404
|
||||
|
||||
|
|
Loading…
Reference in New Issue