forked from rDrama/rDrama
Merge branch 'master' of https://github.com/Aevann1/Drama
commit
45c051a9df
|
@ -27,12 +27,10 @@ beams_client = PushNotifications(
|
||||||
@app.get("/logged_out/post/<pid>/<anything>/<cid>")
|
@app.get("/logged_out/post/<pid>/<anything>/<cid>")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
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)
|
try: cid = int(cid)
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -78,9 +78,9 @@ def submit_get(v):
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def post_id(pid, anything=None, v=None):
|
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)
|
try: pid = int(pid)
|
||||||
except Exception as e: pass
|
except Exception as e: pass
|
||||||
|
|
|
@ -1058,7 +1058,8 @@ CREATE TABLE public.users (
|
||||||
cardview boolean,
|
cardview boolean,
|
||||||
received_award_count integer,
|
received_award_count integer,
|
||||||
highlightcomments boolean,
|
highlightcomments boolean,
|
||||||
club_banned boolean DEFAULT false
|
club_banned boolean DEFAULT false,
|
||||||
|
nitter boolean
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue