@@ -9,6 +9,7 @@ import didV1 from "./contexts/did-v1.json" with { type: "json" };
99import fep5711 from "./contexts/fep-5711.json" with { type : "json" } ;
1010import gotosocial from "./contexts/gotosocial.json" with { type : "json" } ;
1111import identityV1 from "./contexts/identity-v1.json" with { type : "json" } ;
12+ import joinLemmyContext from "./contexts/join-lemmy.json" with { type : "json" } ;
1213import joinmastodon from "./contexts/joinmastodon.json" with { type : "json" } ;
1314import schemaorg from "./contexts/schemaorg.json" with { type : "json" } ;
1415import securityDataIntegrityV1 from "./contexts/security-data-integrity-v1.json" with {
@@ -22,7 +23,6 @@ import securityMultikeyV1 from "./contexts/security-multikey-v1.json" with {
2223} ;
2324import securityV1 from "./contexts/security-v1.json" with { type : "json" } ;
2425import webfinger from "./contexts/webfinger.json" with { type : "json" } ;
25-
2626const preloadedContexts : Record < string , unknown > = {
2727 "https://www.w3.org/ns/activitystreams" : activitystreams ,
2828 "https://w3id.org/security/v1" : securityV1 ,
@@ -36,6 +36,15 @@ const preloadedContexts: Record<string, unknown> = {
3636 "https://gotosocial.org/ns" : gotosocial ,
3737 "https://w3id.org/fep/5711" : fep5711 ,
3838
39+ // Lemmy's context document is served as application/json without the JSON-LD
40+ // context Link header. The default document loader treats that as a regular
41+ // JSON response instead of a JSON-LD context, so every Lemmy activity that
42+ // references this URL fails before application handlers run. We ship a
43+ // built-in copy here so Fedify can parse Lemmy-originated activities without
44+ // application-level document loader workarounds.
45+ // See: https://github.com/fedify-dev/fedify/issues/714
46+ "https://join-lemmy.org/context.json" : joinLemmyContext ,
47+
3948 // Mastodon's "toot:" namespace. The URL http://joinmastodon.org/ns has
4049 // *never* served a real JSON-LD context document—Mastodon has always inlined
4150 // these term definitions directly in every outgoing @context array. However,
0 commit comments