@rmdes/indiekit-endpoint-activitypub 0.1.0 → 0.1.2
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 +2 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
|
|
3
1
|
import express from "express";
|
|
4
2
|
|
|
5
3
|
import { handleWebFinger } from "./lib/webfinger.js";
|
|
@@ -50,9 +48,7 @@ export default class ActivityPubEndpoint {
|
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
return path.dirname(new URL(import.meta.url).pathname);
|
|
55
|
-
}
|
|
51
|
+
// filePath is set by Indiekit's plugin loader via require.resolve()
|
|
56
52
|
|
|
57
53
|
/**
|
|
58
54
|
* WebFinger routes — mounted at /.well-known/
|
|
@@ -196,7 +192,7 @@ export default class ActivityPubEndpoint {
|
|
|
196
192
|
const router = express.Router(); // eslint-disable-line new-cap
|
|
197
193
|
const self = this;
|
|
198
194
|
|
|
199
|
-
router.get("*", async (request, response, next) => {
|
|
195
|
+
router.get("{*path}", async (request, response, next) => {
|
|
200
196
|
const accept = request.headers.accept || "";
|
|
201
197
|
const isActivityPub =
|
|
202
198
|
accept.includes("application/activity+json") ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|