fsd
This commit is contained in:
parent
f1e2a6d6ad
commit
5d6e14b9b3
17 changed files with 53 additions and 53 deletions
|
@ -149,7 +149,7 @@ def front_all(v, sub=None, subdomain=None):
|
|||
session["session_id"] = secrets.token_hex(49)
|
||||
|
||||
if not v and request.path == "/" and not request.headers.get("Authorization"):
|
||||
return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
|
||||
return redirect(f"/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
|
@ -480,7 +480,7 @@ def random_post(v):
|
|||
n = random.randint(1, total - 2)
|
||||
|
||||
post = x.offset(n).limit(1).one_or_none()
|
||||
return redirect(f"{SITE_FULL}/post/{post.id}")
|
||||
return redirect(f"/post/{post.id}")
|
||||
|
||||
@app.get("/comments")
|
||||
@auth_required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue