diff --git a/core/shared.py b/core/shared.py index e1ab120..41c5192 100644 --- a/core/shared.py +++ b/core/shared.py @@ -142,7 +142,9 @@ def _get_ip(): def _build_thread(data, include_children=True): # noqa: C901 data["_requested"] = True app.logger.info(f"_build_thread({data!r})") - root_id = data["meta"][MetaKey.OBJECT_ID.value] + root_id = data["meta"].get( + MetaKey.THREAD_ROOT_PARENT.value, data["meta"][MetaKey.OBJECT_ID.value] + ) replies = [data] for dat in find_activities( diff --git a/templates/utils.html b/templates/utils.html index 34b5eb0..ed49404 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -15,6 +15,17 @@ {% endif %} {%- endmacro %} +{% macro display_actor_oneline(follower) -%} +{% if follower and follower.id %} + + +{{ (follower.name or follower.preferredUsername) | clean | replace_custom_emojis(follower) | safe }} +@{{ follower.preferredUsername }}@{{ follower | url_or_id | get_url | domain }} + + +{% endif %} +{%- endmacro %} + {% macro display_note(obj, perma=False, ui=False, likes=[], shares=[], meta={}, no_color=False) -%} {% if meta.object_actor %} @@ -60,11 +71,22 @@ {% if not perma %} {% endif %} +{% if meta.in_reply_to_actor %} +
{{ obj.summary | clean | replace_custom_emojis(obj) | safe }}
{% endif %} {% if obj | has_type('Video') %}