@rmdes/indiekit-endpoint-activitypub 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -185,8 +185,13 @@ export default class ActivityPubEndpoint {
|
|
|
185
185
|
router.use((req, res, next) => {
|
|
186
186
|
if (!self._fedifyMiddleware) return next();
|
|
187
187
|
if (req.method !== "GET" && req.method !== "HEAD") return next();
|
|
188
|
-
// Skip Fedify for admin routes — handled by authenticated router
|
|
189
|
-
|
|
188
|
+
// Skip Fedify for admin routes — handled by authenticated router.
|
|
189
|
+
// This router is mounted at "/" so paths include the full mountPath prefix
|
|
190
|
+
// (e.g. /activitypub/admin/...), not just /admin/...
|
|
191
|
+
const mp = self.options.mountPath;
|
|
192
|
+
if (req.path.startsWith("/admin") || req.path.startsWith(`${mp}/admin`)) return next();
|
|
193
|
+
// Skip Fedify for the bare dashboard path (e.g. /activitypub)
|
|
194
|
+
if (req.path === mp || req.path === `${mp}/`) return next();
|
|
190
195
|
return self._fedifyMiddleware(req, res, next);
|
|
191
196
|
});
|
|
192
197
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|