fix: hoist bskySyndUrl detection before outer mentions.length gate
Build & Deploy / build-and-deploy (push) Successful in 2m18s

This commit is contained in:
svemagie
2026-04-20 17:57:47 +02:00
parent 96660b50ca
commit bdcec5752c
+9 -9
View File
@@ -14,7 +14,15 @@
data-buildtime="{{ buildTimestamp }}"
class="hidden"></div>
{% if mentions.length %}
{# Detect Bluesky syndication URL here — needed to show section even without webmentions #}
{% set bskySyndUrl = "" %}
{% if syndication %}
{% for url in syndication %}
{% if "bsky.app" in url %}{% set bskySyndUrl = url %}{% endif %}
{% endfor %}
{% endif %}
{% if mentions.length or bskySyndUrl %}
<section class="webmentions mt-8 pt-8 border-t border-surface-200 dark:border-surface-700" id="webmentions">
<h2 class="text-lg font-semibold text-surface-700 dark:text-surface-300 mb-6">
Interactions ({{ mentions.length }})
@@ -113,14 +121,6 @@
{# Replies — webmention replies merged with Bluesky + Mastodon/AP threads (deduplicated) #}
{% set wm_replies = mentions | webmentionsByType('replies') %}
{# Detect Bluesky syndication URL #}
{% set bskySyndUrl = "" %}
{% if syndication %}
{% for url in syndication %}
{% if "bsky.app" in url %}{% set bskySyndUrl = url %}{% endif %}
{% endfor %}
{% endif %}
{# Detect Mastodon/AP activity: check if any webmention reply came via fed.brid.gy #}
{% set mastodonInstance = site.feeds.mastodon.instance %}
{% set apIdentity = site.fediverseCreator %}