fdfd
This commit is contained in:
parent
a8f12eadb0
commit
83defbe2e0
6 changed files with 29 additions and 180 deletions
|
@ -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]
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue