@fedify/fedify 0.11.0-dev.235 → 0.11.0-dev.237
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/CHANGES.md +3 -0
- package/esm/federation/middleware.js +7 -5
- package/esm/vocab/vocab.js +1117 -76
- package/package.json +1 -1
- package/types/federation/callback.d.ts +3 -3
- package/types/federation/callback.d.ts.map +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +102 -0
- package/types/vocab/vocab.d.ts.map +1 -1
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
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
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,
|