fix: notify WebSub hub about homepage URL too

Subscribers discovering via HTML rel="self" subscribe to the
homepage topic, not the feed URL. Must notify hub for all
topic URLs so those subscriptions receive updates.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ricardo
2026-02-05 17:54:07 +01:00
parent 1470e0fbc2
commit c282ef4a1d
+1
View File
@@ -421,6 +421,7 @@ export default function (eleventyConfig) {
// WebSub hub notification — notify subscribers of feed updates // WebSub hub notification — notify subscribers of feed updates
const hubUrl = "https://websubhub.com/hub"; const hubUrl = "https://websubhub.com/hub";
const feedUrls = [ const feedUrls = [
siteUrl,
`${siteUrl}/feed.xml`, `${siteUrl}/feed.xml`,
`${siteUrl}/feed.json`, `${siteUrl}/feed.json`,
]; ];