@rmdes/indiekit-endpoint-activitypub 3.7.1 → 3.7.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.
Files changed (2) hide show
  1. package/index.js +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -721,13 +721,19 @@ export default class ActivityPubEndpoint {
721
721
  );
722
722
 
723
723
  // Resolve the remote actor to get their inbox
724
- // Use authenticated document loader for servers requiring Authorized Fetch
724
+ // Try authenticated document loader first (for Authorized Fetch servers),
725
+ // fall back to unsigned if that fails (some servers reject signed GETs)
725
726
  const documentLoader = await ctx.getDocumentLoader({
726
727
  identifier: handle,
727
728
  });
728
- const remoteActor = await lookupWithSecurity(ctx,actorUrl, {
729
+ let remoteActor = await lookupWithSecurity(ctx, actorUrl, {
729
730
  documentLoader,
730
731
  });
732
+ if (!remoteActor) {
733
+ // Retry without authentication — some servers (e.g., tags.pub)
734
+ // may reject or mishandle signed GET requests
735
+ remoteActor = await lookupWithSecurity(ctx, actorUrl);
736
+ }
731
737
  if (!remoteActor) {
732
738
  return { ok: false, error: "Could not resolve remote actor" };
733
739
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "3.7.1",
3
+ "version": "3.7.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",