From 578581b4dcf1847cbfa74f4b14522e93337a025a Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 27 Nov 2022 16:29:49 +0100 Subject: [PATCH] More mf2 improvements for shares/reposts --- app/templates/index.html | 8 ++++++-- app/templates/utils.html | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index a6915a8..f612102 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -29,8 +29,12 @@ {% if outbox_object.ap_type in ["Note", "Article", "Video", "Question"] %} {{ utils.display_object(outbox_object) }} {% elif outbox_object.ap_type == "Announce" %} -
{{ utils.display_tiny_actor_icon(local_actor) }} {{ local_actor.display_name | clean_html(local_actor) | safe }} shared {{ outbox_object.ap_published_at | timeago }}
- {{ utils.display_object(outbox_object.relates_to_anybox_object) }} +
+ +
+ {{ utils.display_object(outbox_object.relates_to_anybox_object, is_h_entry=False) }} +
+
{% endif %} {% endfor %} diff --git a/app/templates/utils.html b/app/templates/utils.html index 2cf460a..f07dee3 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -247,7 +247,7 @@ {% macro display_tiny_actor_icon(actor) %} {% block display_tiny_actor_icon scoped %} - {{ actor.display_name }}'s avatar + {% endblock %} {% endmacro %} @@ -425,13 +425,13 @@ {% if attachment.type == "Image" or (attachment | has_media_type("image")) %} {% if attachment.url not in object.inlined_images %} - {{ attachment.name }} + {{ attachment.name }} {% endif %} {% elif attachment.type == "Video" or (attachment | has_media_type("video")) %} - + {% elif attachment.type == "Audio" or (attachment | has_media_type("audio")) %} - + {% elif attachment.type == "Link" %} {{ attachment.url | truncate(64, True) }} ({{ attachment.mimetype}}) {% else %}