{# avatar_url, avatar_label — lightbox si image #}
{% set avatar_src = avatar_url %}
{% if avatar_url and not (avatar_url starts with 'http') and not (avatar_url starts with '/') %}
{% set avatar_src = asset(avatar_url) %}
{% endif %}
{% if avatar_src %}
{% include 'shared/_lpf_lightbox_trigger.html.twig' with {
src: avatar_src,
title: avatar_label|default(''),
alt: avatar_label|default(''),
img_class: 'match-hub-v2-feed-avatar',
btn_class: 'lpf-lightbox-trigger match-hub-v2-feed-avatar-btn',
} only %}
{% else %}
{{ (avatar_label|default('?'))|first|upper }}
{% endif %}