diff --git a/app.py b/app.py index ff9c410..ba23e16 100644 --- a/app.py +++ b/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 ( diff --git a/templates/lookup.html b/templates/lookup.html index a8fb5f7..31932c1 100644 --- a/templates/lookup.html +++ b/templates/lookup.html @@ -15,7 +15,7 @@ {% if data %} {% set data = data.to_dict() %}