Add support for Article

This commit is contained in:
Thomas Sileo
2018-07-29 20:24:46 +02:00
parent 6cc30f622a
commit d3db16c63d
3 changed files with 18 additions and 3 deletions

8
app.py
View File

@@ -336,6 +336,14 @@ def has_type(doc, _type):
return False
@app.template_filter()
def has_actor_type(doc):
for t in ap.ACTOR_TYPES:
if has_type(doc, t.value):
return True
return False
def _is_img(filename):
filename = filename.lower()
if (