From 337258ddec70059c3903fc4e0e0d62181d4a8157 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 2 Oct 2019 22:41:28 +0200 Subject: [PATCH] Fix templates --- templates/index.html | 2 +- templates/lookup.html | 6 +++--- templates/stream.html | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/index.html b/templates/index.html index cc3400d..2d1da1c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -53,7 +53,7 @@ {% endif %} {% endif %} {% if item.meta.object %} - {{ utils.display_note(item.meta.object, ui=False, meta=item.meta) }} + {{ utils.display_note(item.meta.object, meta=item.meta) }} {% endif %} {% elif item | has_type('Create') %} {{ utils.display_note(item.activity.object, meta=item.meta, no_color=True) }} diff --git a/templates/lookup.html b/templates/lookup.html index 744caff..2fad534 100644 --- a/templates/lookup.html +++ b/templates/lookup.html @@ -28,15 +28,15 @@ {{ utils.display_actor_inline(data, size=80) }} {% elif data | has_type('Create') %} - {{ utils.display_note(data.object, ui=True) }} + {{ utils.display_note(data.object) }} {% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page', 'Question']) %} - {{ utils.display_note(data, ui=True) }} + {{ utils.display_note(data) }} {% elif data | has_type('Announce') %} {% set boost_actor = meta.actor %}

{{ boost_actor.name }} boosted

- {{ utils.display_note(meta.object, ui=False, meta={'actor': meta.object_actor}) }} + {{ utils.display_note(meta.object) }} {% endif %} diff --git a/templates/stream.html b/templates/stream.html index 2af1fd7..ecbd7fd 100644 --- a/templates/stream.html +++ b/templates/stream.html @@ -137,7 +137,7 @@ {% endif %} - {{ utils.display_note(item.activity.object, ui=True, meta=item.meta) }} + {{ utils.display_note(item.activity.object, meta=item.meta) }} {% else %} {% if item | has_type('Announce') %} {% set boost_actor = item.meta.actor %} @@ -152,7 +152,7 @@ {% endif %} {% if item.meta.object %} - {{ utils.display_note(item.meta.object, ui=True, meta=item.meta) }} + {{ utils.display_note(item.meta.object, meta=item.meta) }} {% endif %} {% endif %} @@ -164,7 +164,7 @@ {{ (item.activity.published or item.meta.published) | format_timeago }} {% if item.meta.object %} - {{ utils.display_note(item.meta.object, ui=False, meta=item.meta) }} + {{ utils.display_note(item.meta.object, meta=item.meta) }} {% endif %} {% endif %}