This commit is contained in:
Aevann1 2021-08-13 04:35:17 +02:00
parent a8f12eadb0
commit 83defbe2e0
6 changed files with 29 additions and 180 deletions

View file

@ -1,4 +1,5 @@
from files.__main__ import app
from .get import *
@app.template_filter("full_link")
@ -9,4 +10,14 @@ def full_link(url):
@app.template_filter("app_config")
def app_config(x):
return app.config.get(x)
return app.config.get(x)
@app.template_filter("post_embed")
def crosspost_embed(id):
p = get_post(id, graceful=True)
return render_template(
"submission_listing.html",
listing=[p]
)