@fedify/fedify 0.11.0-dev.235 → 0.11.0-dev.237

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -10,6 +10,9 @@ To be released.
10
10
 
11
11
  - Improved runtime type error messages for Activity Vocabulary API. [[#79]]
12
12
 
13
+ - Added `suppressError` option to dereferencing accessors of Activity
14
+ Vocabulary classes.
15
+
13
16
  - Added `Federation.setInboxDispatcher()` method. [[#71]]
14
17
 
15
18
  - Frequently used JSON-LD contexts are now preloaded. [[74]]
@@ -877,11 +877,13 @@ export class Federation {
877
877
  case "sharedInbox":
878
878
  if (routeName !== "inbox" && this.#sharedInboxKeyDispatcher != null) {
879
879
  const identity = await this.#sharedInboxKeyDispatcher(context);
880
- context = this.#createContext(request, contextData, {
881
- documentLoader: "handle" in identity
882
- ? await context.getDocumentLoader(identity)
883
- : context.getDocumentLoader(identity),
884
- });
880
+ if (identity != null) {
881
+ context = this.#createContext(request, contextData, {
882
+ documentLoader: "handle" in identity
883
+ ? await context.getDocumentLoader(identity)
884
+ : context.getDocumentLoader(identity),
885
+ });
886
+ }
885
887
  }
886
888
  return await handleInbox(request, {
887
889
  handle: route.values.handle ?? null,