nigg
This commit is contained in:
parent
d8c598f675
commit
893de9965e
2 changed files with 4 additions and 6 deletions
|
@ -27,12 +27,10 @@ beams_client = PushNotifications(
|
|||
@app.get("/logged_out/post/<pid>/<anything>/<cid>")
|
||||
@auth_desired
|
||||
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||
|
||||
|
||||
|
||||
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/comment/{cid}")
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"/logged_out/comment/{cid}")
|
||||
|
||||
if v and "logged_out" in request.full_path: v = None
|
||||
if v and request.full_path.startswith('/logged_out'): v = None
|
||||
|
||||
try: cid = int(cid)
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue