diff --git a/templates/index.html b/templates/index.html
index 2d1da1c..15a7d14 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -44,11 +44,13 @@
- {{ boost_actor.name }} boosted
+ {{ utils.display_actor_box(boost_actor, after="boosted") }}
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
{% else %}
- {{ boost_actor.name }} boosted
+ {{ utils.display_actor_box(boost_actor, after="boosted") }}
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
{% endif %}
{% endif %}
@@ -56,6 +58,11 @@
{{ utils.display_note(item.meta.object, meta=item.meta) }}
{% endif %}
{% elif item | has_type('Create') %}
+ {% if item.activity.object.inReplyTo %}
+
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
+
+ {% endif %}
{{ utils.display_note(item.activity.object, meta=item.meta, no_color=True) }}
{% endif %}
diff --git a/templates/stream.html b/templates/stream.html
index ecbd7fd..badbf72 100644
--- a/templates/stream.html
+++ b/templates/stream.html
@@ -134,6 +134,7 @@
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
{% endif %}
@@ -143,7 +144,9 @@
{% set boost_actor = item.meta.actor %}
{% if boost_actor %}
-
{{ boost_actor.name or boost_actor.preferredUsername }} boosted
+ {{ utils.display_actor_box(boost_actor, after="boosted") }}
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
+
{% if request.path == url_for('admin.admin_notifications') %}
{% if item.meta.notification_unread %}
new{% endif %}
{{ (item.activity.published or item.meta.published) | format_timeago }}
@@ -152,6 +155,7 @@
{% endif %}
{% if item.meta.object %}
+
{{ utils.display_note(item.meta.object, meta=item.meta) }}
{% endif %}
{% endif %}
@@ -159,7 +163,8 @@
{% if item | has_type('Like') %}
{% set boost_actor = item.meta.actor %}
-
{{ boost_actor.name or boost_actor.preferredUsername }} liked
+ {{ utils.display_actor_box(boost_actor, after="liked") }}
+ {{ utils.display_in_reply_to(item.meta, item.activity.object) }}
{% if item.meta.notification_unread %}
new{% endif %}
{{ (item.activity.published or item.meta.published) | format_timeago }}
diff --git a/templates/utils.html b/templates/utils.html
index 7d76238..b2175e9 100644
--- a/templates/utils.html
+++ b/templates/utils.html
@@ -26,6 +26,46 @@
{% endif %}
{%- endmacro %}
+{% macro display_actor_box(actor, after=None, before=None, before_url=None) -%}
+
+{% if not actor.icon %}
+{% set icon_url = "/static/nopic.png" %}
+{% else %}
+{% set icon_url = actor.icon.url | get_actor_icon_url(50) %}
+{% endif %}
+
+
+
+ {% if before and before_url %}
+ {{before}}
+
+ {{ ( actor.name or actor.preferredUsername) | clean | replace_custom_emojis(actor) | safe }}
+
+ {% endif %}
+ {% if after %}
+
+ {{ ( actor.name or actor.preferredUsername) | clean | replace_custom_emojis(actor) | safe }}
+
+ {{ after }}
+ {% endif %}
+
+
+
+
+{%- endmacro %}
+
+{% macro display_in_reply_to(meta, obj) -%}
+
+{% if meta.in_reply_to_actor %}
+{{ display_actor_box(meta.in_reply_to_actor, before="in reply to", before_url=obj.inReplyTo) }}
+{% elif meta.in_reply_to_self %}
+
+self reply
+
+{% endif %}
+
+{%- endmacro %}
+
{% macro display_note(obj, perma=False, likes=[], shares=[], meta={}, no_color=False) -%}
{% if meta.object_actor %}
@@ -74,17 +114,6 @@
-{% if meta.in_reply_to_actor %}
-
-
in reply to {{ display_actor_oneline(meta.in_reply_to_actor) }}
-
-{% elif meta.in_reply_to_self %}
-
-{% endif %}
-
-
{% if obj.summary %}{{ obj.summary | clean | replace_custom_emojis(obj) | safe }}
{% endif %}
{% if obj | has_type('Video') %}