{% extends "layouts/ap-reader.njk" %} {% from "prose/macro.njk" import prose with context %} {% block readercontent %} {# Profile header #}
{% if profile.image %}
{% endif %}
{% if profile.icon %} {{ profile.name }} {% else %} {{ profile.name[0] | upper if profile.name else "?" }} {% endif %}

{{ profile.name or handle }}

{{ fullHandle }}
{% if profile.summary %}
{{ profile.summary | safe }}
{% endif %} {% if profile.attachments and profile.attachments.length > 0 %}
{% for field in profile.attachments %}
{{ field.name }}
{% if field.value and (field.value.startsWith("http://") or field.value.startsWith("https://")) %} {{ field.value | replace("https://", "") | replace("http://", "") }} {% else %} {{ field.value }} {% endif %}
{% endfor %}
{% endif %}
{{ __("activitypub.myProfile.editProfile") }}
{# Tab navigation #} {% set profileBase = mountPath + "/admin/my-profile" %} {# Activity items #} {% if items.length > 0 %}
{% for item in items %} {% include "partials/ap-item-card.njk" %} {% endfor %}
{# Pagination — preserve active tab #} {% if before %} {% endif %} {% else %} {{ prose({ text: __("activitypub.myProfile.empty") }) }} {% endif %} {% endblock %}