Add Page support

This commit is contained in:
Thomas Sileo 2019-04-19 00:33:59 +02:00
parent 323d069bf9
commit 8df4be0602
2 changed files with 2 additions and 2 deletions

View file

@ -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 %}

View file

@ -70,7 +70,7 @@
{% endif %}
<div class="note-container{% if perma %} perma{%endif%} p-name e-content">
{% if obj | has_type('Article') %}
{% if obj | has_type(['Article', 'Page']) %}
{{ obj.name }} <a href="{{ obj | url_or_id | get_url }}">{{ obj | url_or_id | get_url }}</a>
{% elif obj | has_type('Question') %}
{{ obj.content | clean | safe }}