@rmdes/indiekit-endpoint-activitypub 1.0.24 → 1.0.25

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.
@@ -212,13 +212,14 @@ export function setupFederation(options) {
212
212
  return null;
213
213
  })
214
214
  .mapAlias((_ctx, alias) => {
215
- // Resolve profile URL and /@handle patterns via WebFinger
215
+ // Resolve profile URL and /@handle patterns via WebFinger.
216
+ // Must return { identifier } or { username }, not a bare string.
216
217
  if (!publicationUrl) return null;
217
218
  try {
218
219
  const pub = new URL(publicationUrl);
219
220
  if (alias.hostname !== pub.hostname) return null;
220
221
  const path = alias.pathname.replace(/\/$/, "");
221
- if (path === "" || path === `/@${handle}`) return handle;
222
+ if (path === "" || path === `/@${handle}`) return { identifier: handle };
222
223
  } catch { /* ignore */ }
223
224
  return null;
224
225
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
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",