fix: hoist bskySyndUrl detection before outer mentions.length gate
Build & Deploy / build-and-deploy (push) Successful in 2m18s
Build & Deploy / build-and-deploy (push) Successful in 2m18s
This commit is contained in:
@@ -14,7 +14,15 @@
|
|||||||
data-buildtime="{{ buildTimestamp }}"
|
data-buildtime="{{ buildTimestamp }}"
|
||||||
class="hidden"></div>
|
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">
|
<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">
|
<h2 class="text-lg font-semibold text-surface-700 dark:text-surface-300 mb-6">
|
||||||
Interactions ({{ mentions.length }})
|
Interactions ({{ mentions.length }})
|
||||||
@@ -113,14 +121,6 @@
|
|||||||
{# Replies — webmention replies merged with Bluesky + Mastodon/AP threads (deduplicated) #}
|
{# Replies — webmention replies merged with Bluesky + Mastodon/AP threads (deduplicated) #}
|
||||||
{% set wm_replies = mentions | webmentionsByType('replies') %}
|
{% 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 #}
|
{# Detect Mastodon/AP activity: check if any webmention reply came via fed.brid.gy #}
|
||||||
{% set mastodonInstance = site.feeds.mastodon.instance %}
|
{% set mastodonInstance = site.feeds.mastodon.instance %}
|
||||||
{% set apIdentity = site.fediverseCreator %}
|
{% set apIdentity = site.fediverseCreator %}
|
||||||
|
|||||||
Reference in New Issue
Block a user