This commit is contained in:
fireworks88 2021-09-13 19:10:03 +02:00
parent d8c598f675
commit 893de9965e
2 changed files with 4 additions and 6 deletions

View file

@ -78,9 +78,9 @@ def submit_get(v):
@auth_desired
def post_id(pid, anything=None, v=None):
if not v and "logged_out" not in request.path 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/post/{pid}")
if v and "logged_out" in request.full_path: v = None
if v and request.full_path.startswith('/logged_out'): v = None
try: pid = int(pid)
except Exception as e: pass