{% extends "layouts/ap-reader.njk" %} {% from "heading/macro.njk" import heading with context %} {% block readercontent %}
{# Back button #}
← {{ __("activitypub.reader.post.back") }}
{% if notFound %} {# Post not found — show message with external link #}

{{ __("activitypub.reader.post.notFound") }}

{% if objectUrl %}

{{ __("activitypub.reader.post.openExternal") }} →

{% endif %}
{% else %} {# Parent posts (thread context above main post) #} {% if parentPosts and parentPosts.length > 0 %}

{{ __("activitypub.reader.post.parentPosts") }}

{% for parentItem in parentPosts %} {% set item = parentItem %}
{% include "partials/ap-item-card.njk" %}
{% endfor %}
{% endif %} {# Main post #}
{% include "partials/ap-item-card.njk" %}
{# Replies (below main post) #} {% if replyPosts and replyPosts.length > 0 %}

{{ __("activitypub.reader.post.replies") }}

{% for replyItem in replyPosts %} {% set item = replyItem %}
{% include "partials/ap-item-card.njk" %}
{% endfor %}
{% endif %} {% endif %}
{% endblock %}