forked from rDrama/rDrama
fdfd
parent
c155e282bd
commit
fcc24bdc92
|
@ -19,4 +19,5 @@ def crosspost_embed(id):
|
||||||
|
|
||||||
p = get_post(id, graceful=True)
|
p = get_post(id, graceful=True)
|
||||||
|
|
||||||
return render_template("submission_listing.html", listing=[p], postembed=True)
|
if hasattr(g, 'v') and g.v: return render_template("submission_listing.html", listing=[p], v=g.v)
|
||||||
|
else: return render_template("submission_listing.html", listing=[p], postembed=True)
|
|
@ -27,6 +27,7 @@ beams_client = PushNotifications(
|
||||||
@app.get("/comment/<cid>")
|
@app.get("/comment/<cid>")
|
||||||
@app.get("/post/<pid>/<anything>/<cid>")
|
@app.get("/post/<pid>/<anything>/<cid>")
|
||||||
@app.get("/logged_out/comment/<cid>")
|
@app.get("/logged_out/comment/<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):
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ def submit_get(v):
|
||||||
@app.get("/post/<pid>")
|
@app.get("/post/<pid>")
|
||||||
@app.get("/post/<pid>/<anything>")
|
@app.get("/post/<pid>/<anything>")
|
||||||
@app.get("/logged_out/post/<pid>")
|
@app.get("/logged_out/post/<pid>")
|
||||||
|
@app.get("/logged_out/post/<pid>/<anything>")
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def post_id(pid, anything=None, v=None):
|
def post_id(pid, anything=None, v=None):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue