diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 05767f86b4..8c6e63e099 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -19,4 +19,5 @@ def crosspost_embed(id): p = get_post(id, graceful=True) - return render_template("submission_listing.html", listing=[p], postembed=True) \ No newline at end of file + 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) \ No newline at end of file diff --git a/files/routes/comments.py b/files/routes/comments.py index da7e40a983..3c2e74ceee 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -27,6 +27,7 @@ beams_client = PushNotifications( @app.get("/comment/") @app.get("/post///") @app.get("/logged_out/comment/") +@app.get("/logged_out/post///") @auth_desired def post_pid_comment_cid(cid, pid=None, anything=None, v=None): diff --git a/files/routes/posts.py b/files/routes/posts.py index 0d52ef49fc..1cb9a5ee24 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -46,6 +46,7 @@ def submit_get(v): @app.get("/post/") @app.get("/post//") @app.get("/logged_out/post/") +@app.get("/logged_out/post//") @auth_desired def post_id(pid, anything=None, v=None):