{% extends "layouts/ap-reader.njk" %} {% from "heading/macro.njk" import heading with context %} {% block readercontent %} {# Reply context — show the post being replied to #} {% if replyContext %}
{{ __("activitypub.reader.replyingTo") }}
{% if replyContext.author %}
{{ replyContext.author.name }}
{% endif %} {% if replyContext.content and (replyContext.content.html or replyContext.content.text) %}
{{ replyContext.content.html | safe if replyContext.content.html else replyContext.content.text | truncate(300) }}
{% endif %} {{ replyTo }}
{% endif %} {% if isDirect %}
🔒 {{ __("activitypub.compose.directNotice") if __("activitypub.compose.directNotice") != "activitypub.compose.directNotice" else "Direct message — reply stays private" }}
{% endif %}
{% if replyTo %} {% endif %} {% if isDirect %} {% endif %} {# Content warning toggle + summary #}
{# Content textarea #}
{# Visibility — hidden for direct messages #} {% if not isDirect %}
{{ __("activitypub.compose.visibilityLabel") }}
{% endif %} {# Syndication targets — hidden for direct messages #} {% if syndicationTargets.length > 0 and not isDirect %}
{{ __("activitypub.compose.syndicateLabel") }} {% for target in syndicationTargets %} {% endfor %}
{% endif %}
{{ __("activitypub.compose.cancel") }}
{% endblock %}