From a9b4300d7b1cbda2a1d2b59fb90d13b37bd33f37 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 14 Mar 2026 19:19:11 +0100 Subject: [PATCH] fix: reply buttons hidden + missing webmentions on pages without build-time data Two bugs fixed: 1. Reply buttons stayed hidden despite owner being detected. The alpine:initialized event fires before the async checkOwner() fetch resolves, so isOwner was always false when the handler ran. Fix: dispatch custom owner:detected event from init() after both owner check and owner replies are loaded. 2. Client-side webmentions not rendering on pages with zero build-time webmentions. createWebmentionsSection() looked for .webmention-form but the
element lacked that class, so the insertion point was never found. Fix: add webmention-form class to the details element. Confab-Link: http://localhost:8080/sessions/184584f4-67e1-485a-aba8-02ac34a600fe --- _includes/components/webmentions.njk | 2 +- js/comments.js | 6 ++++++ js/webmentions.js | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/_includes/components/webmentions.njk b/_includes/components/webmentions.njk index c29ce46..97edcff 100644 --- a/_includes/components/webmentions.njk +++ b/_includes/components/webmentions.njk @@ -192,7 +192,7 @@ {% endif %} {# Webmention send form — collapsed by default #} -
+