From 8df4be06027ab0ba798f66c496ca27bfe6d9734b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 19 Apr 2019 00:33:59 +0200 Subject: [PATCH] Add Page support --- templates/lookup.html | 2 +- templates/utils.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lookup.html b/templates/lookup.html index 8a4173d..ebf7213 100644 --- a/templates/lookup.html +++ b/templates/lookup.html @@ -29,7 +29,7 @@ {{ utils.display_actor_inline(data, size=80) }} {% elif data | has_type('Create') %} {{ utils.display_note(data.object, ui=True) }} - {% elif data | has_type(['Note', 'Article', 'Video']) %} + {% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page']) %} {{ utils.display_note(data, ui=True) }} {% elif data | has_type('Announce') %} {% set boost_actor = meta.actor %} diff --git a/templates/utils.html b/templates/utils.html index 702018c..a5b713c 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -70,7 +70,7 @@ {% endif %}
- {% if obj | has_type('Article') %} + {% if obj | has_type(['Article', 'Page']) %} {{ obj.name }} {{ obj | url_or_id | get_url }} {% elif obj | has_type('Question') %} {{ obj.content | clean | safe }}