mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
fix: update webmention API URLs for new moderation plugin
Change all webmention fetch URLs from /webmentions-api/api/mentions to /webmentions/api/mentions to match the new @rmdes/indiekit-endpoint-webmention-io plugin which replaces both the upstream viewer and the proxy plugin. Build-time feed now fetches from local Indiekit API instead of webmention.io directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
// stores targets inconsistently (Bridgy sends different formats)
|
||||
const targetWithSlash = target.endsWith('/') ? target : target + '/';
|
||||
const targetWithoutSlash = target.endsWith('/') ? target.slice(0, -1) : target;
|
||||
const apiUrl1 = `/webmentions-api/api/mentions?target=${encodeURIComponent(targetWithSlash)}&per-page=100`;
|
||||
const apiUrl2 = `/webmentions-api/api/mentions?target=${encodeURIComponent(targetWithoutSlash)}&per-page=100`;
|
||||
const apiUrl1 = `/webmentions/api/mentions?target=${encodeURIComponent(targetWithSlash)}&per-page=100`;
|
||||
const apiUrl2 = `/webmentions/api/mentions?target=${encodeURIComponent(targetWithoutSlash)}&per-page=100`;
|
||||
|
||||
// Check if build-time webmentions section exists
|
||||
const hasBuildTimeSection = document.getElementById('webmentions') !== null;
|
||||
|
||||
Reference in New Issue
Block a user