remotes/1693045480750635534/spooky-22
Aevann1 2021-10-01 22:11:44 +02:00
parent ee683e227d
commit abb86c1035
4 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

@ -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

View File

@ -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