{% extends 'layout.html.twig' %} {% block body %}

{% if author.nip05 is defined %} {% if author.nip05 is iterable %} {% for nip05Value in author.nip05 %} {% endfor %} {% else %} {% endif %} {% endif %}

Profile Information

{% if author.about is defined %}

About

{{ author.about|markdown_to_html|mentionify|linkify }}
{% endif %} {% if author.banner is defined %}

Banner

Profile banner
{% endif %} {% if author.website is defined %} {% endif %} {% if author.lud16 is defined %}

Lightning Address{{ author.lud16 is iterable and author.lud16|length > 1 ? 'es' : '' }}

{% if author.lud16 is iterable %} {% for address in author.lud16 %}
{{ address }}
{% endfor %} {% else %} {{ author.lud16 }} {% endif %}
{% endif %} {% if author.lud06 is defined %}

LNURL{{ author.lud06 is iterable and author.lud06|length > 1 ? 's' : '' }}

{% if author.lud06 is iterable %} {% for lnurl in author.lud06 %}
{{ lnurl }}
{% endfor %} {% else %} {{ author.lud06 }} {% endif %}
{% endif %}

Public Key (hex)

{{ pubkey }}

Public Key (npub)

{{ npub }}
{# Display any additional fields that might be present #} {% set standardFields = ['name', 'display_name', 'about', 'picture', 'banner', 'nip05', 'website', 'lud16', 'lud06', 'image'] %} {% for key, value in author %} {% if key not in standardFields and value is not empty %}

{{ key|title }}

{% if value starts with 'http://' or value starts with 'https://' %} {{ value }} {% else %} {{ value }} {% endif %}
{% endif %} {% endfor %}
{# Raw Event Debug Section #}
Raw Profile Event (Debug)

Event ID:

{{ rawEvent.id ?? 'N/A' }}

Created At:

{{ rawEvent.created_at ?? 'N/A' }} ({{ rawEvent.created_at is defined ? rawEvent.created_at|date('Y-m-d H:i:s') : 'N/A' }})

Tags:

{{ rawEvent.tags is defined ? rawEvent.tags|json_encode(constant('JSON_PRETTY_PRINT')) : '[]' }}

Content (JSON):

{{ rawEvent.content ?? '{}' }}

Signature:

{{ rawEvent.sig ?? 'N/A' }}

Full Event Object:

{{ rawEvent|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% endblock %}