{% set safe_source = safe_url(mention.source) %}
{% set safe_author_url = safe_url(mention.author_url) %}
{% set safe_author_photo = safe_url(mention.author_photo) %}
{% if mention.title and mention.source %}
{% if safe_author_photo %}
{% endif %}
{% if mention.author_name or mention.author_url %}
{% if safe_author_url %}
{{ mention.author_name or hostname(safe_author_url) }}
{% else %}
{{ mention.author_name }}
{% endif %}
{% if safe_source %}
{{ hostname(safe_source) }}
{% endif %}
{% else %}
{{ hostname(safe_source) }}
{% endif %}
🕒
{{ format_datetime(mention.published or mention.created_at) }}
{% if mention.updated_at and mention.updated_at != mention.created_at %}
✎
{% endif %}
{% if mention.content %}
{{ sanitize_html(mention.content) }}
{% elif mention.excerpt %}
{{ sanitize_html(mention.excerpt) }}
{% endif %}
{% if mention.metadata %}
{% set metadata = fromjson(mention.metadata) %}
{% set mf2 = fromjson(metadata.get("mf2") if metadata is mapping else None) %}
{% if mf2 %}
{% if mf2 is mapping %}
{% set in_reply_to = mf2.get("in_reply_to") or [] %}
{% set like_of = mf2.get("like_of") or [] %}
{% set repost_of = mf2.get("repost_of") or [] %}
{% set bookmark_of = mf2.get("bookmark_of") or [] %}
{% set follow_of = mf2.get("follow_of") or [] %}
{% set quotation_of = mf2.get("quotation_of") or [] %}
{% set rsvp = mf2.get("rsvp") %}
{% set category = mf2.get("category") or [] %}
{% set syndication = mf2.get("syndication") or [] %}
{% set photo = mf2.get("photo") or mf2.get("photo_url") or [] %}
{% set video = mf2.get("video") or mf2.get("video_url") or [] %}
{% set audio = mf2.get("audio") or mf2.get("audio_url") or [] %}
{% set location = mf2.get("location") %}
{% if in_reply_to %}
💬
{% for url in in_reply_to %}
{% set rurl = safe_url(url) %}
{% if rurl %}
{{ hostname(rurl) or rurl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if like_of %}
👍
{% for url in like_of %}
{% set lurl = safe_url(url) %}
{% if lurl %}
{{ hostname(lurl) or lurl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if repost_of %}
↻
{% for url in repost_of %}
{% set rpurl = safe_url(url) %}
{% if rpurl %}
{{ hostname(rpurl) or rpurl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if bookmark_of %}
🔗
{% for url in bookmark_of %}
{% set bmurl = safe_url(url) %}
{% if bmurl %}
{{ hostname(bmurl) or bmurl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if follow_of %}
👋
{% for url in follow_of %}
{% set furl = safe_url(url) %}
{% if furl %}
{{ hostname(furl) or furl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if quotation_of %}
💭
{% for url in quotation_of %}
{% set qurl = safe_url(url) %}
{% if qurl %}
{{ hostname(qurl) or qurl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if rsvp %}
📅 {{ rsvp }}
{% endif %}
{% if location %}
📅 {{ location }}
{% endif %}
{% if category %}
📍
{% for c in category %}
{{ c }}{% if not loop.last %}, {% endif %}
{% endfor %}
{% endif %}
{% if syndication %}
📞
{% for url in syndication %}
{% set surl = safe_url(url) %}
{% if surl %}
{{ hostname(surl) or surl }}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if photo %}
{% for url in photo %}
{% if url %}
{% set purl = safe_url(url) %}
{% if purl %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if video %}
{% for url in video %}
{% if url %}
{% set vurl = safe_url(url) %}
{% if vurl %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if audio %}
{% for url in audio %}
{% if url %}
{% set aurl = safe_url(url) %}
{% if aurl %}
{% endif %}
{% endif %}
{% endfor %}