@rmdes/indiekit-endpoint-activitypub 1.0.7 → 1.0.8
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/lib/federation-setup.js +15 -0
- package/package.json +1 -1
package/lib/federation-setup.js
CHANGED
|
@@ -162,6 +162,13 @@ export function setupFederation(options) {
|
|
|
162
162
|
storeRawActivities,
|
|
163
163
|
});
|
|
164
164
|
|
|
165
|
+
// Enable authenticated fetches for the shared inbox.
|
|
166
|
+
// Without this, Fedify can't verify incoming HTTP Signatures from servers
|
|
167
|
+
// that require authorized fetch (e.g. hachyderm.io returns 401 on unsigned GETs).
|
|
168
|
+
// This tells Fedify to use our actor's key pair when fetching remote actor
|
|
169
|
+
// documents during signature verification on the shared inbox.
|
|
170
|
+
inboxChain.setSharedKeyDispatcher((_ctx) => ({ identifier: handle }));
|
|
171
|
+
|
|
165
172
|
// --- Collection dispatchers ---
|
|
166
173
|
setupFollowers(federation, mountPath, handle, collections);
|
|
167
174
|
setupFollowing(federation, mountPath, handle, collections);
|
|
@@ -187,6 +194,14 @@ export function setupFederation(options) {
|
|
|
187
194
|
};
|
|
188
195
|
});
|
|
189
196
|
|
|
197
|
+
// Start the message queue for outbound activity delivery.
|
|
198
|
+
// Without this, ctx.sendActivity() enqueues delivery tasks but the
|
|
199
|
+
// InProcessMessageQueue never processes them — activities are never
|
|
200
|
+
// actually POSTed to follower inboxes.
|
|
201
|
+
federation.startQueue().catch((error) => {
|
|
202
|
+
console.error("[ActivityPub] Failed to start delivery queue:", error.message);
|
|
203
|
+
});
|
|
204
|
+
|
|
190
205
|
return { federation };
|
|
191
206
|
}
|
|
192
207
|
|
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.8",
|
|
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",
|