fddf
This commit is contained in:
parent
ca17f0da6b
commit
bfefd3b22d
2 changed files with 3 additions and 4 deletions
|
@ -13,12 +13,11 @@ def app_config(x):
|
|||
return app.config.get(x)
|
||||
|
||||
@app.template_filter("post_embed")
|
||||
def post_embed(id):
|
||||
def post_embed(id, v):
|
||||
|
||||
try: id = int(id)
|
||||
except: return None
|
||||
|
||||
p = get_post(id, graceful=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)
|
||||
return render_template("submission_listing.html", listing=[p], v=v)
|
Loading…
Add table
Add a link
Reference in a new issue