forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-08-13 04:55:52 +02:00
parent c155e282bd
commit fcc24bdc92
3 changed files with 4 additions and 1 deletions

View File

@ -19,4 +19,5 @@ def crosspost_embed(id):
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)

View File

@ -27,6 +27,7 @@ beams_client = PushNotifications(
@app.get("/comment/<cid>")
@app.get("/post/<pid>/<anything>/<cid>")
@app.get("/logged_out/comment/<cid>")
@app.get("/logged_out/post/<pid>/<anything>/<cid>")
@auth_desired
def post_pid_comment_cid(cid, pid=None, anything=None, v=None):

View File

@ -46,6 +46,7 @@ def submit_get(v):
@app.get("/post/<pid>")
@app.get("/post/<pid>/<anything>")
@app.get("/logged_out/post/<pid>")
@app.get("/logged_out/post/<pid>/<anything>")
@auth_desired
def post_id(pid, anything=None, v=None):