From b551d82a21bbfe731c8a0683999f646e9299e78d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 18 Feb 2026 22:37:32 +0100 Subject: [PATCH] fix: use Express 5 wildcard syntax for content negotiation route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Express 5 uses path-to-regexp v8 which requires named wildcards. Bare "*" is no longer valid — use "{*path}" instead. Co-Authored-By: Claude Opus 4.6 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0be1f5a..c8e34e2 100644 --- a/index.js +++ b/index.js @@ -192,7 +192,7 @@ export default class ActivityPubEndpoint { const router = express.Router(); // eslint-disable-line new-cap const self = this; - router.get("*", async (request, response, next) => { + router.get("{*path}", async (request, response, next) => { const accept = request.headers.accept || ""; const isActivityPub = accept.includes("application/activity+json") || diff --git a/package.json b/package.json index b40a939..8bc9e1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "0.1.1", + "version": "0.1.2", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit",