Add support for Article
This commit is contained in:
parent
6cc30f622a
commit
d3db16c63d
3 changed files with 18 additions and 3 deletions
8
app.py
8
app.py
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue