This commit is contained in:
Aevann1 2021-08-13 20:53:11 +02:00
parent ea20a19339
commit ca17f0da6b
7 changed files with 18 additions and 12 deletions

View file

@ -13,9 +13,10 @@ def app_config(x):
return app.config.get(x)
@app.template_filter("post_embed")
def crosspost_embed(id):
def post_embed(id):
id = int(id)
try: id = int(id)
except: return None
p = get_post(id, graceful=True)