@fedify/vocab 2.2.14-dev.2082 → 2.2.14
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/deno.json +1 -1
- package/dist/mod.cjs +1826 -181
- package/dist/mod.js +1826 -181
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-RUnTBRj7.mjs → deno-Bm7tiCIb.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +7 -7
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-BPaC52Gq.mjs → vocab-B7Fuv7Kz.mjs} +1825 -180
- package/dist-tests/vocab.test.mjs +144 -1
- package/package.json +4 -4
- package/src/lookup.test.ts +6 -5
- package/src/vocab.test.ts +197 -0
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.2.14
|
|
36
|
+
var version = "2.2.14";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
|
@@ -42,6 +42,12 @@ function getTypeId(object) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/vocab.ts
|
|
45
|
+
function canDecodeIri(iri) {
|
|
46
|
+
return URL.canParse(iri) || iri.startsWith("at://");
|
|
47
|
+
}
|
|
48
|
+
function decodeIri(iri) {
|
|
49
|
+
return !URL.canParse(iri) && iri.startsWith("at://") ? new URL("at://" + encodeURIComponent(iri.substring(5))) : new URL(iri);
|
|
50
|
+
}
|
|
45
51
|
function isValidLanguageTag(language) {
|
|
46
52
|
try {
|
|
47
53
|
new Intl.Locale(language);
|
|
@@ -847,7 +853,17 @@ var Object$1 = class Object$1 {
|
|
|
847
853
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attachment" in this._cachedJsonLd) {
|
|
848
854
|
const prop = this._cachedJsonLd["attachment"];
|
|
849
855
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
850
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
856
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
857
|
+
v = await this.#attachment_fromJsonLd(obj, options);
|
|
858
|
+
} catch (error) {
|
|
859
|
+
if (!options.suppressError) throw error;
|
|
860
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
861
|
+
property: "https://www.w3.org/ns/activitystreams#attachment",
|
|
862
|
+
index: i,
|
|
863
|
+
error
|
|
864
|
+
});
|
|
865
|
+
continue;
|
|
866
|
+
}
|
|
851
867
|
}
|
|
852
868
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.has(0)) {
|
|
853
869
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1016,7 +1032,16 @@ var Object$1 = class Object$1 {
|
|
|
1016
1032
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1017
1033
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1018
1034
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1019
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1035
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1036
|
+
v = await this.#attribution_fromJsonLd(doc, options);
|
|
1037
|
+
} catch (error) {
|
|
1038
|
+
if (!options.suppressError) throw error;
|
|
1039
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1040
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1041
|
+
error
|
|
1042
|
+
});
|
|
1043
|
+
return null;
|
|
1044
|
+
}
|
|
1020
1045
|
}
|
|
1021
1046
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1022
1047
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1059,7 +1084,17 @@ var Object$1 = class Object$1 {
|
|
|
1059
1084
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "attributedTo" in this._cachedJsonLd) {
|
|
1060
1085
|
const prop = this._cachedJsonLd["attributedTo"];
|
|
1061
1086
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1062
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1087
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1088
|
+
v = await this.#attribution_fromJsonLd(obj, options);
|
|
1089
|
+
} catch (error) {
|
|
1090
|
+
if (!options.suppressError) throw error;
|
|
1091
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1092
|
+
property: "https://www.w3.org/ns/activitystreams#attributedTo",
|
|
1093
|
+
index: i,
|
|
1094
|
+
error
|
|
1095
|
+
});
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1063
1098
|
}
|
|
1064
1099
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.has(0)) {
|
|
1065
1100
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1181,7 +1216,16 @@ var Object$1 = class Object$1 {
|
|
|
1181
1216
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1182
1217
|
const prop = this._cachedJsonLd["audience"];
|
|
1183
1218
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1184
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1219
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1220
|
+
v = await this.#audience_fromJsonLd(doc, options);
|
|
1221
|
+
} catch (error) {
|
|
1222
|
+
if (!options.suppressError) throw error;
|
|
1223
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1224
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1225
|
+
error
|
|
1226
|
+
});
|
|
1227
|
+
return null;
|
|
1228
|
+
}
|
|
1185
1229
|
}
|
|
1186
1230
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1187
1231
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1223,7 +1267,17 @@ var Object$1 = class Object$1 {
|
|
|
1223
1267
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "audience" in this._cachedJsonLd) {
|
|
1224
1268
|
const prop = this._cachedJsonLd["audience"];
|
|
1225
1269
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1226
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1270
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1271
|
+
v = await this.#audience_fromJsonLd(obj, options);
|
|
1272
|
+
} catch (error) {
|
|
1273
|
+
if (!options.suppressError) throw error;
|
|
1274
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1275
|
+
property: "https://www.w3.org/ns/activitystreams#audience",
|
|
1276
|
+
index: i,
|
|
1277
|
+
error
|
|
1278
|
+
});
|
|
1279
|
+
continue;
|
|
1280
|
+
}
|
|
1227
1281
|
}
|
|
1228
1282
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.has(0)) {
|
|
1229
1283
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1379,7 +1433,17 @@ var Object$1 = class Object$1 {
|
|
|
1379
1433
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "context" in this._cachedJsonLd) {
|
|
1380
1434
|
const prop = this._cachedJsonLd["context"];
|
|
1381
1435
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1382
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1436
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1437
|
+
v = await this.#context_fromJsonLd(obj, options);
|
|
1438
|
+
} catch (error) {
|
|
1439
|
+
if (!options.suppressError) throw error;
|
|
1440
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1441
|
+
property: "https://www.w3.org/ns/activitystreams#context",
|
|
1442
|
+
index: i,
|
|
1443
|
+
error
|
|
1444
|
+
});
|
|
1445
|
+
continue;
|
|
1446
|
+
}
|
|
1383
1447
|
}
|
|
1384
1448
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.has(0)) {
|
|
1385
1449
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1535,7 +1599,17 @@ var Object$1 = class Object$1 {
|
|
|
1535
1599
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "generator" in this._cachedJsonLd) {
|
|
1536
1600
|
const prop = this._cachedJsonLd["generator"];
|
|
1537
1601
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1538
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1602
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1603
|
+
v = await this.#generator_fromJsonLd(obj, options);
|
|
1604
|
+
} catch (error) {
|
|
1605
|
+
if (!options.suppressError) throw error;
|
|
1606
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1607
|
+
property: "https://www.w3.org/ns/activitystreams#generator",
|
|
1608
|
+
index: i,
|
|
1609
|
+
error
|
|
1610
|
+
});
|
|
1611
|
+
continue;
|
|
1612
|
+
}
|
|
1539
1613
|
}
|
|
1540
1614
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.has(0)) {
|
|
1541
1615
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1658,7 +1732,16 @@ var Object$1 = class Object$1 {
|
|
|
1658
1732
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1659
1733
|
const prop = this._cachedJsonLd["icon"];
|
|
1660
1734
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1661
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1735
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1736
|
+
v = await this.#icon_fromJsonLd(doc, options);
|
|
1737
|
+
} catch (error) {
|
|
1738
|
+
if (!options.suppressError) throw error;
|
|
1739
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1740
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1741
|
+
error
|
|
1742
|
+
});
|
|
1743
|
+
return null;
|
|
1744
|
+
}
|
|
1662
1745
|
}
|
|
1663
1746
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1664
1747
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1701,7 +1784,17 @@ var Object$1 = class Object$1 {
|
|
|
1701
1784
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "icon" in this._cachedJsonLd) {
|
|
1702
1785
|
const prop = this._cachedJsonLd["icon"];
|
|
1703
1786
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1704
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1787
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1788
|
+
v = await this.#icon_fromJsonLd(obj, options);
|
|
1789
|
+
} catch (error) {
|
|
1790
|
+
if (!options.suppressError) throw error;
|
|
1791
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1792
|
+
property: "https://www.w3.org/ns/activitystreams#icon",
|
|
1793
|
+
index: i,
|
|
1794
|
+
error
|
|
1795
|
+
});
|
|
1796
|
+
continue;
|
|
1797
|
+
}
|
|
1705
1798
|
}
|
|
1706
1799
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.has(0)) {
|
|
1707
1800
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1824,7 +1917,16 @@ var Object$1 = class Object$1 {
|
|
|
1824
1917
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1825
1918
|
const prop = this._cachedJsonLd["image"];
|
|
1826
1919
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
1827
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
1920
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
1921
|
+
v = await this.#image_fromJsonLd(doc, options);
|
|
1922
|
+
} catch (error) {
|
|
1923
|
+
if (!options.suppressError) throw error;
|
|
1924
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
1925
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
1926
|
+
error
|
|
1927
|
+
});
|
|
1928
|
+
return null;
|
|
1929
|
+
}
|
|
1828
1930
|
}
|
|
1829
1931
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1830
1932
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1867,7 +1969,17 @@ var Object$1 = class Object$1 {
|
|
|
1867
1969
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "image" in this._cachedJsonLd) {
|
|
1868
1970
|
const prop = this._cachedJsonLd["image"];
|
|
1869
1971
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
1870
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
1972
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
1973
|
+
v = await this.#image_fromJsonLd(obj, options);
|
|
1974
|
+
} catch (error) {
|
|
1975
|
+
if (!options.suppressError) throw error;
|
|
1976
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
1977
|
+
property: "https://www.w3.org/ns/activitystreams#image",
|
|
1978
|
+
index: i,
|
|
1979
|
+
error
|
|
1980
|
+
});
|
|
1981
|
+
continue;
|
|
1982
|
+
}
|
|
1871
1983
|
}
|
|
1872
1984
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.has(0)) {
|
|
1873
1985
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -1999,7 +2111,16 @@ var Object$1 = class Object$1 {
|
|
|
1999
2111
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2000
2112
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2001
2113
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2002
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2114
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2115
|
+
v = await this.#replyTarget_fromJsonLd(doc, options);
|
|
2116
|
+
} catch (error) {
|
|
2117
|
+
if (!options.suppressError) throw error;
|
|
2118
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2119
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2120
|
+
error
|
|
2121
|
+
});
|
|
2122
|
+
return null;
|
|
2123
|
+
}
|
|
2003
2124
|
}
|
|
2004
2125
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2005
2126
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2041,7 +2162,17 @@ var Object$1 = class Object$1 {
|
|
|
2041
2162
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inReplyTo" in this._cachedJsonLd) {
|
|
2042
2163
|
const prop = this._cachedJsonLd["inReplyTo"];
|
|
2043
2164
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2044
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2165
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2166
|
+
v = await this.#replyTarget_fromJsonLd(obj, options);
|
|
2167
|
+
} catch (error) {
|
|
2168
|
+
if (!options.suppressError) throw error;
|
|
2169
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2170
|
+
property: "https://www.w3.org/ns/activitystreams#inReplyTo",
|
|
2171
|
+
index: i,
|
|
2172
|
+
error
|
|
2173
|
+
});
|
|
2174
|
+
continue;
|
|
2175
|
+
}
|
|
2045
2176
|
}
|
|
2046
2177
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.has(0)) {
|
|
2047
2178
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2173,7 +2304,16 @@ var Object$1 = class Object$1 {
|
|
|
2173
2304
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2174
2305
|
const prop = this._cachedJsonLd["location"];
|
|
2175
2306
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2176
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2307
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2308
|
+
v = await this.#location_fromJsonLd(doc, options);
|
|
2309
|
+
} catch (error) {
|
|
2310
|
+
if (!options.suppressError) throw error;
|
|
2311
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2312
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2313
|
+
error
|
|
2314
|
+
});
|
|
2315
|
+
return null;
|
|
2316
|
+
}
|
|
2177
2317
|
}
|
|
2178
2318
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2179
2319
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2215,7 +2355,17 @@ var Object$1 = class Object$1 {
|
|
|
2215
2355
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "location" in this._cachedJsonLd) {
|
|
2216
2356
|
const prop = this._cachedJsonLd["location"];
|
|
2217
2357
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2218
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2358
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2359
|
+
v = await this.#location_fromJsonLd(obj, options);
|
|
2360
|
+
} catch (error) {
|
|
2361
|
+
if (!options.suppressError) throw error;
|
|
2362
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2363
|
+
property: "https://www.w3.org/ns/activitystreams#location",
|
|
2364
|
+
index: i,
|
|
2365
|
+
error
|
|
2366
|
+
});
|
|
2367
|
+
continue;
|
|
2368
|
+
}
|
|
2219
2369
|
}
|
|
2220
2370
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.has(0)) {
|
|
2221
2371
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2346,7 +2496,16 @@ var Object$1 = class Object$1 {
|
|
|
2346
2496
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2347
2497
|
const prop = this._cachedJsonLd["preview"];
|
|
2348
2498
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2349
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2499
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2500
|
+
v = await this.#preview_fromJsonLd(doc, options);
|
|
2501
|
+
} catch (error) {
|
|
2502
|
+
if (!options.suppressError) throw error;
|
|
2503
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2504
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2505
|
+
error
|
|
2506
|
+
});
|
|
2507
|
+
return null;
|
|
2508
|
+
}
|
|
2350
2509
|
}
|
|
2351
2510
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2352
2511
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2387,7 +2546,17 @@ var Object$1 = class Object$1 {
|
|
|
2387
2546
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
2388
2547
|
const prop = this._cachedJsonLd["preview"];
|
|
2389
2548
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
2390
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
2549
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
2550
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
2551
|
+
} catch (error) {
|
|
2552
|
+
if (!options.suppressError) throw error;
|
|
2553
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
2554
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
2555
|
+
index: i,
|
|
2556
|
+
error
|
|
2557
|
+
});
|
|
2558
|
+
continue;
|
|
2559
|
+
}
|
|
2391
2560
|
}
|
|
2392
2561
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
2393
2562
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2516,7 +2685,16 @@ var Object$1 = class Object$1 {
|
|
|
2516
2685
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replies" in this._cachedJsonLd) {
|
|
2517
2686
|
const prop = this._cachedJsonLd["replies"];
|
|
2518
2687
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2519
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2688
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2689
|
+
v = await this.#replies_fromJsonLd(doc, options);
|
|
2690
|
+
} catch (error) {
|
|
2691
|
+
if (!options.suppressError) throw error;
|
|
2692
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2693
|
+
property: "https://www.w3.org/ns/activitystreams#replies",
|
|
2694
|
+
error
|
|
2695
|
+
});
|
|
2696
|
+
return null;
|
|
2697
|
+
}
|
|
2520
2698
|
}
|
|
2521
2699
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies.has(0)) {
|
|
2522
2700
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2643,7 +2821,16 @@ var Object$1 = class Object$1 {
|
|
|
2643
2821
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "shares" in this._cachedJsonLd) {
|
|
2644
2822
|
const prop = this._cachedJsonLd["shares"];
|
|
2645
2823
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2646
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2824
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2825
|
+
v = await this.#shares_fromJsonLd(doc, options);
|
|
2826
|
+
} catch (error) {
|
|
2827
|
+
if (!options.suppressError) throw error;
|
|
2828
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2829
|
+
property: "https://www.w3.org/ns/activitystreams#shares",
|
|
2830
|
+
error
|
|
2831
|
+
});
|
|
2832
|
+
return null;
|
|
2833
|
+
}
|
|
2647
2834
|
}
|
|
2648
2835
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares.has(0)) {
|
|
2649
2836
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2770,7 +2957,16 @@ var Object$1 = class Object$1 {
|
|
|
2770
2957
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likes" in this._cachedJsonLd) {
|
|
2771
2958
|
const prop = this._cachedJsonLd["likes"];
|
|
2772
2959
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2773
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
2960
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
2961
|
+
v = await this.#likes_fromJsonLd(doc, options);
|
|
2962
|
+
} catch (error) {
|
|
2963
|
+
if (!options.suppressError) throw error;
|
|
2964
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
2965
|
+
property: "https://www.w3.org/ns/activitystreams#likes",
|
|
2966
|
+
error
|
|
2967
|
+
});
|
|
2968
|
+
return null;
|
|
2969
|
+
}
|
|
2774
2970
|
}
|
|
2775
2971
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.has(0)) {
|
|
2776
2972
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -2891,7 +3087,16 @@ var Object$1 = class Object$1 {
|
|
|
2891
3087
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "emojiReactions" in this._cachedJsonLd) {
|
|
2892
3088
|
const prop = this._cachedJsonLd["emojiReactions"];
|
|
2893
3089
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
2894
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3090
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3091
|
+
v = await this.#emojiReactions_fromJsonLd(doc, options);
|
|
3092
|
+
} catch (error) {
|
|
3093
|
+
if (!options.suppressError) throw error;
|
|
3094
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3095
|
+
property: "http://fedibird.com/ns#emojiReactions",
|
|
3096
|
+
error
|
|
3097
|
+
});
|
|
3098
|
+
return null;
|
|
3099
|
+
}
|
|
2895
3100
|
}
|
|
2896
3101
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.has(0)) {
|
|
2897
3102
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3047,7 +3252,17 @@ var Object$1 = class Object$1 {
|
|
|
3047
3252
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "tag" in this._cachedJsonLd) {
|
|
3048
3253
|
const prop = this._cachedJsonLd["tag"];
|
|
3049
3254
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3050
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3255
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3256
|
+
v = await this.#tag_fromJsonLd(obj, options);
|
|
3257
|
+
} catch (error) {
|
|
3258
|
+
if (!options.suppressError) throw error;
|
|
3259
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3260
|
+
property: "https://www.w3.org/ns/activitystreams#tag",
|
|
3261
|
+
index: i,
|
|
3262
|
+
error
|
|
3263
|
+
});
|
|
3264
|
+
continue;
|
|
3265
|
+
}
|
|
3051
3266
|
}
|
|
3052
3267
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.has(0)) {
|
|
3053
3268
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3188,7 +3403,16 @@ var Object$1 = class Object$1 {
|
|
|
3188
3403
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3189
3404
|
const prop = this._cachedJsonLd["to"];
|
|
3190
3405
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3191
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3406
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3407
|
+
v = await this.#to_fromJsonLd(doc, options);
|
|
3408
|
+
} catch (error) {
|
|
3409
|
+
if (!options.suppressError) throw error;
|
|
3410
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3411
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3412
|
+
error
|
|
3413
|
+
});
|
|
3414
|
+
return null;
|
|
3415
|
+
}
|
|
3192
3416
|
}
|
|
3193
3417
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3194
3418
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3230,7 +3454,17 @@ var Object$1 = class Object$1 {
|
|
|
3230
3454
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "to" in this._cachedJsonLd) {
|
|
3231
3455
|
const prop = this._cachedJsonLd["to"];
|
|
3232
3456
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3233
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3457
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3458
|
+
v = await this.#to_fromJsonLd(obj, options);
|
|
3459
|
+
} catch (error) {
|
|
3460
|
+
if (!options.suppressError) throw error;
|
|
3461
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3462
|
+
property: "https://www.w3.org/ns/activitystreams#to",
|
|
3463
|
+
index: i,
|
|
3464
|
+
error
|
|
3465
|
+
});
|
|
3466
|
+
continue;
|
|
3467
|
+
}
|
|
3234
3468
|
}
|
|
3235
3469
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.has(0)) {
|
|
3236
3470
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3352,7 +3586,16 @@ var Object$1 = class Object$1 {
|
|
|
3352
3586
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3353
3587
|
const prop = this._cachedJsonLd["bto"];
|
|
3354
3588
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3355
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3589
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3590
|
+
v = await this.#bto_fromJsonLd(doc, options);
|
|
3591
|
+
} catch (error) {
|
|
3592
|
+
if (!options.suppressError) throw error;
|
|
3593
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3594
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3595
|
+
error
|
|
3596
|
+
});
|
|
3597
|
+
return null;
|
|
3598
|
+
}
|
|
3356
3599
|
}
|
|
3357
3600
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3358
3601
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3394,7 +3637,17 @@ var Object$1 = class Object$1 {
|
|
|
3394
3637
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bto" in this._cachedJsonLd) {
|
|
3395
3638
|
const prop = this._cachedJsonLd["bto"];
|
|
3396
3639
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3397
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3640
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3641
|
+
v = await this.#bto_fromJsonLd(obj, options);
|
|
3642
|
+
} catch (error) {
|
|
3643
|
+
if (!options.suppressError) throw error;
|
|
3644
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3645
|
+
property: "https://www.w3.org/ns/activitystreams#bto",
|
|
3646
|
+
index: i,
|
|
3647
|
+
error
|
|
3648
|
+
});
|
|
3649
|
+
continue;
|
|
3650
|
+
}
|
|
3398
3651
|
}
|
|
3399
3652
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.has(0)) {
|
|
3400
3653
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3516,7 +3769,16 @@ var Object$1 = class Object$1 {
|
|
|
3516
3769
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3517
3770
|
const prop = this._cachedJsonLd["cc"];
|
|
3518
3771
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3519
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3772
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3773
|
+
v = await this.#cc_fromJsonLd(doc, options);
|
|
3774
|
+
} catch (error) {
|
|
3775
|
+
if (!options.suppressError) throw error;
|
|
3776
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3777
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3778
|
+
error
|
|
3779
|
+
});
|
|
3780
|
+
return null;
|
|
3781
|
+
}
|
|
3520
3782
|
}
|
|
3521
3783
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3522
3784
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3558,7 +3820,17 @@ var Object$1 = class Object$1 {
|
|
|
3558
3820
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "cc" in this._cachedJsonLd) {
|
|
3559
3821
|
const prop = this._cachedJsonLd["cc"];
|
|
3560
3822
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3561
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
3823
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
3824
|
+
v = await this.#cc_fromJsonLd(obj, options);
|
|
3825
|
+
} catch (error) {
|
|
3826
|
+
if (!options.suppressError) throw error;
|
|
3827
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
3828
|
+
property: "https://www.w3.org/ns/activitystreams#cc",
|
|
3829
|
+
index: i,
|
|
3830
|
+
error
|
|
3831
|
+
});
|
|
3832
|
+
continue;
|
|
3833
|
+
}
|
|
3562
3834
|
}
|
|
3563
3835
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.has(0)) {
|
|
3564
3836
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3680,7 +3952,16 @@ var Object$1 = class Object$1 {
|
|
|
3680
3952
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3681
3953
|
const prop = this._cachedJsonLd["bcc"];
|
|
3682
3954
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3683
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
3955
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
3956
|
+
v = await this.#bcc_fromJsonLd(doc, options);
|
|
3957
|
+
} catch (error) {
|
|
3958
|
+
if (!options.suppressError) throw error;
|
|
3959
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
3960
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
3961
|
+
error
|
|
3962
|
+
});
|
|
3963
|
+
return null;
|
|
3964
|
+
}
|
|
3684
3965
|
}
|
|
3685
3966
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3686
3967
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3722,7 +4003,17 @@ var Object$1 = class Object$1 {
|
|
|
3722
4003
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "bcc" in this._cachedJsonLd) {
|
|
3723
4004
|
const prop = this._cachedJsonLd["bcc"];
|
|
3724
4005
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3725
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
4006
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4007
|
+
v = await this.#bcc_fromJsonLd(obj, options);
|
|
4008
|
+
} catch (error) {
|
|
4009
|
+
if (!options.suppressError) throw error;
|
|
4010
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4011
|
+
property: "https://www.w3.org/ns/activitystreams#bcc",
|
|
4012
|
+
index: i,
|
|
4013
|
+
error
|
|
4014
|
+
});
|
|
4015
|
+
continue;
|
|
4016
|
+
}
|
|
3726
4017
|
}
|
|
3727
4018
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.has(0)) {
|
|
3728
4019
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3880,7 +4171,16 @@ var Object$1 = class Object$1 {
|
|
|
3880
4171
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
3881
4172
|
const prop = this._cachedJsonLd["proof"];
|
|
3882
4173
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
3883
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4174
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4175
|
+
v = await this.#proof_fromJsonLd(doc, options);
|
|
4176
|
+
} catch (error) {
|
|
4177
|
+
if (!options.suppressError) throw error;
|
|
4178
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4179
|
+
property: "https://w3id.org/security#proof",
|
|
4180
|
+
error
|
|
4181
|
+
});
|
|
4182
|
+
return null;
|
|
4183
|
+
}
|
|
3884
4184
|
}
|
|
3885
4185
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
3886
4186
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -3921,7 +4221,17 @@ var Object$1 = class Object$1 {
|
|
|
3921
4221
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "proof" in this._cachedJsonLd) {
|
|
3922
4222
|
const prop = this._cachedJsonLd["proof"];
|
|
3923
4223
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
3924
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
4224
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
4225
|
+
v = await this.#proof_fromJsonLd(obj, options);
|
|
4226
|
+
} catch (error) {
|
|
4227
|
+
if (!options.suppressError) throw error;
|
|
4228
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
4229
|
+
property: "https://w3id.org/security#proof",
|
|
4230
|
+
index: i,
|
|
4231
|
+
error
|
|
4232
|
+
});
|
|
4233
|
+
continue;
|
|
4234
|
+
}
|
|
3925
4235
|
}
|
|
3926
4236
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.has(0)) {
|
|
3927
4237
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4068,7 +4378,16 @@ var Object$1 = class Object$1 {
|
|
|
4068
4378
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likeAuthorization" in this._cachedJsonLd) {
|
|
4069
4379
|
const prop = this._cachedJsonLd["likeAuthorization"];
|
|
4070
4380
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4071
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4381
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4382
|
+
v = await this.#likeAuthorization_fromJsonLd(doc, options);
|
|
4383
|
+
} catch (error) {
|
|
4384
|
+
if (!options.suppressError) throw error;
|
|
4385
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4386
|
+
property: "https://gotosocial.org/ns#likeAuthorization",
|
|
4387
|
+
error
|
|
4388
|
+
});
|
|
4389
|
+
return null;
|
|
4390
|
+
}
|
|
4072
4391
|
}
|
|
4073
4392
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.has(0)) {
|
|
4074
4393
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4189,7 +4508,16 @@ var Object$1 = class Object$1 {
|
|
|
4189
4508
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "replyAuthorization" in this._cachedJsonLd) {
|
|
4190
4509
|
const prop = this._cachedJsonLd["replyAuthorization"];
|
|
4191
4510
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4192
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4511
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4512
|
+
v = await this.#replyAuthorization_fromJsonLd(doc, options);
|
|
4513
|
+
} catch (error) {
|
|
4514
|
+
if (!options.suppressError) throw error;
|
|
4515
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4516
|
+
property: "https://gotosocial.org/ns#replyAuthorization",
|
|
4517
|
+
error
|
|
4518
|
+
});
|
|
4519
|
+
return null;
|
|
4520
|
+
}
|
|
4193
4521
|
}
|
|
4194
4522
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.has(0)) {
|
|
4195
4523
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -4310,7 +4638,16 @@ var Object$1 = class Object$1 {
|
|
|
4310
4638
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "announceAuthorization" in this._cachedJsonLd) {
|
|
4311
4639
|
const prop = this._cachedJsonLd["announceAuthorization"];
|
|
4312
4640
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
4313
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
4641
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
4642
|
+
v = await this.#announceAuthorization_fromJsonLd(doc, options);
|
|
4643
|
+
} catch (error) {
|
|
4644
|
+
if (!options.suppressError) throw error;
|
|
4645
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
4646
|
+
property: "https://gotosocial.org/ns#announceAuthorization",
|
|
4647
|
+
error
|
|
4648
|
+
});
|
|
4649
|
+
return null;
|
|
4650
|
+
}
|
|
4314
4651
|
}
|
|
4315
4652
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.has(0)) {
|
|
4316
4653
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -6874,7 +7211,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6874
7211
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
6875
7212
|
const prop = this._cachedJsonLd["quote"];
|
|
6876
7213
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
6877
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7214
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7215
|
+
v = await this.#quote_fromJsonLd(doc, options);
|
|
7216
|
+
} catch (error) {
|
|
7217
|
+
if (!options.suppressError) throw error;
|
|
7218
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7219
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
7220
|
+
error
|
|
7221
|
+
});
|
|
7222
|
+
return null;
|
|
7223
|
+
}
|
|
6878
7224
|
}
|
|
6879
7225
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
6880
7226
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7011,7 +7357,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7011
7357
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
7012
7358
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
7013
7359
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7014
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
7360
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
7361
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, options);
|
|
7362
|
+
} catch (error) {
|
|
7363
|
+
if (!options.suppressError) throw error;
|
|
7364
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
7365
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
7366
|
+
error
|
|
7367
|
+
});
|
|
7368
|
+
return null;
|
|
7369
|
+
}
|
|
7015
7370
|
}
|
|
7016
7371
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
7017
7372
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7262,7 +7617,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
7262
7617
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
7263
7618
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
7264
7619
|
if (v == null) continue;
|
|
7265
|
-
const decoded =
|
|
7620
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
7266
7621
|
if (typeof decoded === "undefined") {
|
|
7267
7622
|
shouldCacheJsonLd = false;
|
|
7268
7623
|
continue;
|
|
@@ -7681,7 +8036,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7681
8036
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
7682
8037
|
const prop = this._cachedJsonLd["actor"];
|
|
7683
8038
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7684
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8039
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8040
|
+
v = await this.#actor_fromJsonLd(doc, options);
|
|
8041
|
+
} catch (error) {
|
|
8042
|
+
if (!options.suppressError) throw error;
|
|
8043
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8044
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8045
|
+
error
|
|
8046
|
+
});
|
|
8047
|
+
return null;
|
|
8048
|
+
}
|
|
7685
8049
|
}
|
|
7686
8050
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
7687
8051
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7724,7 +8088,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
7724
8088
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "actor" in this._cachedJsonLd) {
|
|
7725
8089
|
const prop = this._cachedJsonLd["actor"];
|
|
7726
8090
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7727
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8091
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8092
|
+
v = await this.#actor_fromJsonLd(obj, options);
|
|
8093
|
+
} catch (error) {
|
|
8094
|
+
if (!options.suppressError) throw error;
|
|
8095
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8096
|
+
property: "https://www.w3.org/ns/activitystreams#actor",
|
|
8097
|
+
index: i,
|
|
8098
|
+
error
|
|
8099
|
+
});
|
|
8100
|
+
continue;
|
|
8101
|
+
}
|
|
7728
8102
|
}
|
|
7729
8103
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.has(0)) {
|
|
7730
8104
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7847,7 +8221,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
7847
8221
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
7848
8222
|
const prop = this._cachedJsonLd["object"];
|
|
7849
8223
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
7850
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8224
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8225
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
8226
|
+
} catch (error) {
|
|
8227
|
+
if (!options.suppressError) throw error;
|
|
8228
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8229
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8230
|
+
error
|
|
8231
|
+
});
|
|
8232
|
+
return null;
|
|
8233
|
+
}
|
|
7851
8234
|
}
|
|
7852
8235
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
7853
8236
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -7890,7 +8273,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
7890
8273
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
7891
8274
|
const prop = this._cachedJsonLd["object"];
|
|
7892
8275
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
7893
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8276
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8277
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
8278
|
+
} catch (error) {
|
|
8279
|
+
if (!options.suppressError) throw error;
|
|
8280
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8281
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
8282
|
+
index: i,
|
|
8283
|
+
error
|
|
8284
|
+
});
|
|
8285
|
+
continue;
|
|
8286
|
+
}
|
|
7894
8287
|
}
|
|
7895
8288
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
7896
8289
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8016,7 +8409,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
8016
8409
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8017
8410
|
const prop = this._cachedJsonLd["target"];
|
|
8018
8411
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8019
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8412
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8413
|
+
v = await this.#target_fromJsonLd(doc, options);
|
|
8414
|
+
} catch (error) {
|
|
8415
|
+
if (!options.suppressError) throw error;
|
|
8416
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8417
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8418
|
+
error
|
|
8419
|
+
});
|
|
8420
|
+
return null;
|
|
8421
|
+
}
|
|
8020
8422
|
}
|
|
8021
8423
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8022
8424
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8062,7 +8464,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
8062
8464
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "target" in this._cachedJsonLd) {
|
|
8063
8465
|
const prop = this._cachedJsonLd["target"];
|
|
8064
8466
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8065
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8467
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8468
|
+
v = await this.#target_fromJsonLd(obj, options);
|
|
8469
|
+
} catch (error) {
|
|
8470
|
+
if (!options.suppressError) throw error;
|
|
8471
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8472
|
+
property: "https://www.w3.org/ns/activitystreams#target",
|
|
8473
|
+
index: i,
|
|
8474
|
+
error
|
|
8475
|
+
});
|
|
8476
|
+
continue;
|
|
8477
|
+
}
|
|
8066
8478
|
}
|
|
8067
8479
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.has(0)) {
|
|
8068
8480
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8185,7 +8597,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
8185
8597
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8186
8598
|
const prop = this._cachedJsonLd["result"];
|
|
8187
8599
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8188
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8600
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8601
|
+
v = await this.#result_fromJsonLd(doc, options);
|
|
8602
|
+
} catch (error) {
|
|
8603
|
+
if (!options.suppressError) throw error;
|
|
8604
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8605
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
8606
|
+
error
|
|
8607
|
+
});
|
|
8608
|
+
return null;
|
|
8609
|
+
}
|
|
8189
8610
|
}
|
|
8190
8611
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8191
8612
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8228,7 +8649,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
8228
8649
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "result" in this._cachedJsonLd) {
|
|
8229
8650
|
const prop = this._cachedJsonLd["result"];
|
|
8230
8651
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8231
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8652
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8653
|
+
v = await this.#result_fromJsonLd(obj, options);
|
|
8654
|
+
} catch (error) {
|
|
8655
|
+
if (!options.suppressError) throw error;
|
|
8656
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8657
|
+
property: "https://www.w3.org/ns/activitystreams#result",
|
|
8658
|
+
index: i,
|
|
8659
|
+
error
|
|
8660
|
+
});
|
|
8661
|
+
continue;
|
|
8662
|
+
}
|
|
8232
8663
|
}
|
|
8233
8664
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.has(0)) {
|
|
8234
8665
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8352,7 +8783,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
8352
8783
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8353
8784
|
const prop = this._cachedJsonLd["origin"];
|
|
8354
8785
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8355
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8786
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8787
|
+
v = await this.#origin_fromJsonLd(doc, options);
|
|
8788
|
+
} catch (error) {
|
|
8789
|
+
if (!options.suppressError) throw error;
|
|
8790
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8791
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
8792
|
+
error
|
|
8793
|
+
});
|
|
8794
|
+
return null;
|
|
8795
|
+
}
|
|
8356
8796
|
}
|
|
8357
8797
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8358
8798
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8396,7 +8836,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
8396
8836
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "origin" in this._cachedJsonLd) {
|
|
8397
8837
|
const prop = this._cachedJsonLd["origin"];
|
|
8398
8838
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8399
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
8839
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
8840
|
+
v = await this.#origin_fromJsonLd(obj, options);
|
|
8841
|
+
} catch (error) {
|
|
8842
|
+
if (!options.suppressError) throw error;
|
|
8843
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
8844
|
+
property: "https://www.w3.org/ns/activitystreams#origin",
|
|
8845
|
+
index: i,
|
|
8846
|
+
error
|
|
8847
|
+
});
|
|
8848
|
+
continue;
|
|
8849
|
+
}
|
|
8400
8850
|
}
|
|
8401
8851
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.has(0)) {
|
|
8402
8852
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8518,7 +8968,16 @@ var Activity = class Activity extends Object$1 {
|
|
|
8518
8968
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8519
8969
|
const prop = this._cachedJsonLd["instrument"];
|
|
8520
8970
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
8521
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
8971
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
8972
|
+
v = await this.#instrument_fromJsonLd(doc, options);
|
|
8973
|
+
} catch (error) {
|
|
8974
|
+
if (!options.suppressError) throw error;
|
|
8975
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
8976
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
8977
|
+
error
|
|
8978
|
+
});
|
|
8979
|
+
return null;
|
|
8980
|
+
}
|
|
8522
8981
|
}
|
|
8523
8982
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8524
8983
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -8560,7 +9019,17 @@ var Activity = class Activity extends Object$1 {
|
|
|
8560
9019
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "instrument" in this._cachedJsonLd) {
|
|
8561
9020
|
const prop = this._cachedJsonLd["instrument"];
|
|
8562
9021
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
8563
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
9022
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
9023
|
+
v = await this.#instrument_fromJsonLd(obj, options);
|
|
9024
|
+
} catch (error) {
|
|
9025
|
+
if (!options.suppressError) throw error;
|
|
9026
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
9027
|
+
property: "https://www.w3.org/ns/activitystreams#instrument",
|
|
9028
|
+
index: i,
|
|
9029
|
+
error
|
|
9030
|
+
});
|
|
9031
|
+
continue;
|
|
9032
|
+
}
|
|
8564
9033
|
}
|
|
8565
9034
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.has(0)) {
|
|
8566
9035
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -9845,7 +10314,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9845
10314
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
9846
10315
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
9847
10316
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
9848
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10317
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10318
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
10319
|
+
} catch (error) {
|
|
10320
|
+
if (!options.suppressError) throw error;
|
|
10321
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10322
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
10323
|
+
error
|
|
10324
|
+
});
|
|
10325
|
+
return null;
|
|
10326
|
+
}
|
|
9849
10327
|
}
|
|
9850
10328
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
9851
10329
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -9965,7 +10443,16 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9965
10443
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
9966
10444
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
9967
10445
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
9968
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
10446
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
10447
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
10448
|
+
} catch (error) {
|
|
10449
|
+
if (!options.suppressError) throw error;
|
|
10450
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
10451
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
10452
|
+
error
|
|
10453
|
+
});
|
|
10454
|
+
return null;
|
|
10455
|
+
}
|
|
9969
10456
|
}
|
|
9970
10457
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
9971
10458
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11197,7 +11684,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11197
11684
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
11198
11685
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
11199
11686
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11200
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11687
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11688
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
11689
|
+
} catch (error) {
|
|
11690
|
+
if (!options.suppressError) throw error;
|
|
11691
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11692
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
11693
|
+
error
|
|
11694
|
+
});
|
|
11695
|
+
return null;
|
|
11696
|
+
}
|
|
11201
11697
|
}
|
|
11202
11698
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
11203
11699
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11317,7 +11813,16 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
11317
11813
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
11318
11814
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
11319
11815
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11320
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
11816
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
11817
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
11818
|
+
} catch (error) {
|
|
11819
|
+
if (!options.suppressError) throw error;
|
|
11820
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
11821
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
11822
|
+
error
|
|
11823
|
+
});
|
|
11824
|
+
return null;
|
|
11825
|
+
}
|
|
11321
11826
|
}
|
|
11322
11827
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
11323
11828
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11877,7 +12382,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11877
12382
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
11878
12383
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
11879
12384
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
11880
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12385
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12386
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
12387
|
+
} catch (error) {
|
|
12388
|
+
if (!options.suppressError) throw error;
|
|
12389
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12390
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
12391
|
+
error
|
|
12392
|
+
});
|
|
12393
|
+
return null;
|
|
12394
|
+
}
|
|
11881
12395
|
}
|
|
11882
12396
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
11883
12397
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -11997,7 +12511,16 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11997
12511
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
11998
12512
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
11999
12513
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12000
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
12514
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
12515
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
12516
|
+
} catch (error) {
|
|
12517
|
+
if (!options.suppressError) throw error;
|
|
12518
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
12519
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
12520
|
+
error
|
|
12521
|
+
});
|
|
12522
|
+
return null;
|
|
12523
|
+
}
|
|
12001
12524
|
}
|
|
12002
12525
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
12003
12526
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12556,7 +13079,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12556
13079
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactingObject" in this._cachedJsonLd) {
|
|
12557
13080
|
const prop = this._cachedJsonLd["interactingObject"];
|
|
12558
13081
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12559
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13082
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13083
|
+
v = await this.#interactingObject_fromJsonLd(doc, options);
|
|
13084
|
+
} catch (error) {
|
|
13085
|
+
if (!options.suppressError) throw error;
|
|
13086
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13087
|
+
property: "https://gotosocial.org/ns#interactingObject",
|
|
13088
|
+
error
|
|
13089
|
+
});
|
|
13090
|
+
return null;
|
|
13091
|
+
}
|
|
12560
13092
|
}
|
|
12561
13093
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.has(0)) {
|
|
12562
13094
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -12676,7 +13208,16 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
12676
13208
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "interactionTarget" in this._cachedJsonLd) {
|
|
12677
13209
|
const prop = this._cachedJsonLd["interactionTarget"];
|
|
12678
13210
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
12679
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
13211
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
13212
|
+
v = await this.#interactionTarget_fromJsonLd(doc, options);
|
|
13213
|
+
} catch (error) {
|
|
13214
|
+
if (!options.suppressError) throw error;
|
|
13215
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
13216
|
+
property: "https://gotosocial.org/ns#interactionTarget",
|
|
13217
|
+
error
|
|
13218
|
+
});
|
|
13219
|
+
return null;
|
|
13220
|
+
}
|
|
12680
13221
|
}
|
|
12681
13222
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.has(0)) {
|
|
12682
13223
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -14226,7 +14767,16 @@ var CryptographicKey = class {
|
|
|
14226
14767
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "owner" in this._cachedJsonLd) {
|
|
14227
14768
|
const prop = this._cachedJsonLd["owner"];
|
|
14228
14769
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14229
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
14770
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
14771
|
+
v = await this.#owner_fromJsonLd(doc, options);
|
|
14772
|
+
} catch (error) {
|
|
14773
|
+
if (!options.suppressError) throw error;
|
|
14774
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
14775
|
+
property: "https://w3id.org/security#owner",
|
|
14776
|
+
error
|
|
14777
|
+
});
|
|
14778
|
+
return null;
|
|
14779
|
+
}
|
|
14230
14780
|
}
|
|
14231
14781
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.has(0)) {
|
|
14232
14782
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -14707,7 +15257,16 @@ var Multikey = class {
|
|
|
14707
15257
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "controller" in this._cachedJsonLd) {
|
|
14708
15258
|
const prop = this._cachedJsonLd["controller"];
|
|
14709
15259
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
14710
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
15260
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
15261
|
+
v = await this.#controller_fromJsonLd(doc, options);
|
|
15262
|
+
} catch (error) {
|
|
15263
|
+
if (!options.suppressError) throw error;
|
|
15264
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
15265
|
+
property: "https://w3id.org/security#controller",
|
|
15266
|
+
error
|
|
15267
|
+
});
|
|
15268
|
+
return null;
|
|
15269
|
+
}
|
|
14711
15270
|
}
|
|
14712
15271
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.has(0)) {
|
|
14713
15272
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16741,7 +17300,16 @@ var Application = class Application extends Object$1 {
|
|
|
16741
17300
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
16742
17301
|
const prop = this._cachedJsonLd["publicKey"];
|
|
16743
17302
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16744
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17303
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17304
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
17305
|
+
} catch (error) {
|
|
17306
|
+
if (!options.suppressError) throw error;
|
|
17307
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17308
|
+
property: "https://w3id.org/security#publicKey",
|
|
17309
|
+
error
|
|
17310
|
+
});
|
|
17311
|
+
return null;
|
|
17312
|
+
}
|
|
16745
17313
|
}
|
|
16746
17314
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
16747
17315
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16782,7 +17350,17 @@ var Application = class Application extends Object$1 {
|
|
|
16782
17350
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
16783
17351
|
const prop = this._cachedJsonLd["publicKey"];
|
|
16784
17352
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
16785
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
17353
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
17354
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
17355
|
+
} catch (error) {
|
|
17356
|
+
if (!options.suppressError) throw error;
|
|
17357
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
17358
|
+
property: "https://w3id.org/security#publicKey",
|
|
17359
|
+
index: i,
|
|
17360
|
+
error
|
|
17361
|
+
});
|
|
17362
|
+
continue;
|
|
17363
|
+
}
|
|
16786
17364
|
}
|
|
16787
17365
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
16788
17366
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16906,7 +17484,16 @@ var Application = class Application extends Object$1 {
|
|
|
16906
17484
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
16907
17485
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
16908
17486
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
16909
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17487
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17488
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
17489
|
+
} catch (error) {
|
|
17490
|
+
if (!options.suppressError) throw error;
|
|
17491
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17492
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
17493
|
+
error
|
|
17494
|
+
});
|
|
17495
|
+
return null;
|
|
17496
|
+
}
|
|
16910
17497
|
}
|
|
16911
17498
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
16912
17499
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -16950,7 +17537,17 @@ var Application = class Application extends Object$1 {
|
|
|
16950
17537
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
16951
17538
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
16952
17539
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
16953
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
17540
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
17541
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
17542
|
+
} catch (error) {
|
|
17543
|
+
if (!options.suppressError) throw error;
|
|
17544
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
17545
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
17546
|
+
index: i,
|
|
17547
|
+
error
|
|
17548
|
+
});
|
|
17549
|
+
continue;
|
|
17550
|
+
}
|
|
16954
17551
|
}
|
|
16955
17552
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
16956
17553
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17105,7 +17702,16 @@ var Application = class Application extends Object$1 {
|
|
|
17105
17702
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
17106
17703
|
const prop = this._cachedJsonLd["inbox"];
|
|
17107
17704
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17108
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17705
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17706
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
17707
|
+
} catch (error) {
|
|
17708
|
+
if (!options.suppressError) throw error;
|
|
17709
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17710
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
17711
|
+
error
|
|
17712
|
+
});
|
|
17713
|
+
return null;
|
|
17714
|
+
}
|
|
17109
17715
|
}
|
|
17110
17716
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
17111
17717
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17244,7 +17850,16 @@ var Application = class Application extends Object$1 {
|
|
|
17244
17850
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
17245
17851
|
const prop = this._cachedJsonLd["outbox"];
|
|
17246
17852
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17247
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17853
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17854
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
17855
|
+
} catch (error) {
|
|
17856
|
+
if (!options.suppressError) throw error;
|
|
17857
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17858
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
17859
|
+
error
|
|
17860
|
+
});
|
|
17861
|
+
return null;
|
|
17862
|
+
}
|
|
17248
17863
|
}
|
|
17249
17864
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
17250
17865
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17368,7 +17983,16 @@ var Application = class Application extends Object$1 {
|
|
|
17368
17983
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
17369
17984
|
const prop = this._cachedJsonLd["following"];
|
|
17370
17985
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17371
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
17986
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
17987
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
17988
|
+
} catch (error) {
|
|
17989
|
+
if (!options.suppressError) throw error;
|
|
17990
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
17991
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
17992
|
+
error
|
|
17993
|
+
});
|
|
17994
|
+
return null;
|
|
17995
|
+
}
|
|
17372
17996
|
}
|
|
17373
17997
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
17374
17998
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17495,7 +18119,16 @@ var Application = class Application extends Object$1 {
|
|
|
17495
18119
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
17496
18120
|
const prop = this._cachedJsonLd["followers"];
|
|
17497
18121
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17498
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18122
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18123
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
18124
|
+
} catch (error) {
|
|
18125
|
+
if (!options.suppressError) throw error;
|
|
18126
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18127
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
18128
|
+
error
|
|
18129
|
+
});
|
|
18130
|
+
return null;
|
|
18131
|
+
}
|
|
17499
18132
|
}
|
|
17500
18133
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
17501
18134
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17620,7 +18253,16 @@ var Application = class Application extends Object$1 {
|
|
|
17620
18253
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
17621
18254
|
const prop = this._cachedJsonLd["liked"];
|
|
17622
18255
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17623
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18256
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18257
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
18258
|
+
} catch (error) {
|
|
18259
|
+
if (!options.suppressError) throw error;
|
|
18260
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18261
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
18262
|
+
error
|
|
18263
|
+
});
|
|
18264
|
+
return null;
|
|
18265
|
+
}
|
|
17624
18266
|
}
|
|
17625
18267
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
17626
18268
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17743,7 +18385,16 @@ var Application = class Application extends Object$1 {
|
|
|
17743
18385
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
17744
18386
|
const prop = this._cachedJsonLd["featured"];
|
|
17745
18387
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17746
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18388
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18389
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
18390
|
+
} catch (error) {
|
|
18391
|
+
if (!options.suppressError) throw error;
|
|
18392
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18393
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
18394
|
+
error
|
|
18395
|
+
});
|
|
18396
|
+
return null;
|
|
18397
|
+
}
|
|
17747
18398
|
}
|
|
17748
18399
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
17749
18400
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17866,7 +18517,16 @@ var Application = class Application extends Object$1 {
|
|
|
17866
18517
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
17867
18518
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
17868
18519
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
17869
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18520
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18521
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
18522
|
+
} catch (error) {
|
|
18523
|
+
if (!options.suppressError) throw error;
|
|
18524
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18525
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
18526
|
+
error
|
|
18527
|
+
});
|
|
18528
|
+
return null;
|
|
18529
|
+
}
|
|
17870
18530
|
}
|
|
17871
18531
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
17872
18532
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -17985,7 +18645,17 @@ var Application = class Application extends Object$1 {
|
|
|
17985
18645
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
17986
18646
|
const prop = this._cachedJsonLd["streams"];
|
|
17987
18647
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
17988
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
18648
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
18649
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
18650
|
+
} catch (error) {
|
|
18651
|
+
if (!options.suppressError) throw error;
|
|
18652
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
18653
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
18654
|
+
index: i,
|
|
18655
|
+
error
|
|
18656
|
+
});
|
|
18657
|
+
continue;
|
|
18658
|
+
}
|
|
17989
18659
|
}
|
|
17990
18660
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
17991
18661
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18194,7 +18864,16 @@ var Application = class Application extends Object$1 {
|
|
|
18194
18864
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
18195
18865
|
const prop = this._cachedJsonLd["movedTo"];
|
|
18196
18866
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18197
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
18867
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
18868
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
18869
|
+
} catch (error) {
|
|
18870
|
+
if (!options.suppressError) throw error;
|
|
18871
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
18872
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
18873
|
+
error
|
|
18874
|
+
});
|
|
18875
|
+
return null;
|
|
18876
|
+
}
|
|
18198
18877
|
}
|
|
18199
18878
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
18200
18879
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18363,7 +19042,16 @@ var Application = class Application extends Object$1 {
|
|
|
18363
19042
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
18364
19043
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
18365
19044
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18366
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19045
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19046
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
19047
|
+
} catch (error) {
|
|
19048
|
+
if (!options.suppressError) throw error;
|
|
19049
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19050
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
19051
|
+
error
|
|
19052
|
+
});
|
|
19053
|
+
return null;
|
|
19054
|
+
}
|
|
18367
19055
|
}
|
|
18368
19056
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
18369
19057
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18407,7 +19095,17 @@ var Application = class Application extends Object$1 {
|
|
|
18407
19095
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
18408
19096
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
18409
19097
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
18410
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19098
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
19099
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
19100
|
+
} catch (error) {
|
|
19101
|
+
if (!options.suppressError) throw error;
|
|
19102
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
19103
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
19104
|
+
index: i,
|
|
19105
|
+
error
|
|
19106
|
+
});
|
|
19107
|
+
continue;
|
|
19108
|
+
}
|
|
18411
19109
|
}
|
|
18412
19110
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
18413
19111
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18531,7 +19229,16 @@ var Application = class Application extends Object$1 {
|
|
|
18531
19229
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
18532
19230
|
const prop = this._cachedJsonLd["service"];
|
|
18533
19231
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
18534
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
19232
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
19233
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
19234
|
+
} catch (error) {
|
|
19235
|
+
if (!options.suppressError) throw error;
|
|
19236
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
19237
|
+
property: "https://www.w3.org/ns/did#service",
|
|
19238
|
+
error
|
|
19239
|
+
});
|
|
19240
|
+
return null;
|
|
19241
|
+
}
|
|
18535
19242
|
}
|
|
18536
19243
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
18537
19244
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -18575,7 +19282,17 @@ var Application = class Application extends Object$1 {
|
|
|
18575
19282
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
18576
19283
|
const prop = this._cachedJsonLd["service"];
|
|
18577
19284
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
18578
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
19285
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
19286
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
19287
|
+
} catch (error) {
|
|
19288
|
+
if (!options.suppressError) throw error;
|
|
19289
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
19290
|
+
property: "https://www.w3.org/ns/did#service",
|
|
19291
|
+
index: i,
|
|
19292
|
+
error
|
|
19293
|
+
});
|
|
19294
|
+
continue;
|
|
19295
|
+
}
|
|
18579
19296
|
}
|
|
18580
19297
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
18581
19298
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20180,7 +20897,16 @@ var Article = class Article extends Object$1 {
|
|
|
20180
20897
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
20181
20898
|
const prop = this._cachedJsonLd["quote"];
|
|
20182
20899
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20183
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
20900
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
20901
|
+
v = await this.#quote_fromJsonLd(doc, options);
|
|
20902
|
+
} catch (error) {
|
|
20903
|
+
if (!options.suppressError) throw error;
|
|
20904
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
20905
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
20906
|
+
error
|
|
20907
|
+
});
|
|
20908
|
+
return null;
|
|
20909
|
+
}
|
|
20184
20910
|
}
|
|
20185
20911
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
20186
20912
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20317,7 +21043,16 @@ var Article = class Article extends Object$1 {
|
|
|
20317
21043
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
20318
21044
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
20319
21045
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
20320
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
21046
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
21047
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, options);
|
|
21048
|
+
} catch (error) {
|
|
21049
|
+
if (!options.suppressError) throw error;
|
|
21050
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
21051
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
21052
|
+
error
|
|
21053
|
+
});
|
|
21054
|
+
return null;
|
|
21055
|
+
}
|
|
20321
21056
|
}
|
|
20322
21057
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
20323
21058
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -20570,7 +21305,7 @@ var Article = class Article extends Object$1 {
|
|
|
20570
21305
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
20571
21306
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
20572
21307
|
if (v == null) continue;
|
|
20573
|
-
const decoded =
|
|
21308
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
20574
21309
|
if (typeof decoded === "undefined") {
|
|
20575
21310
|
shouldCacheJsonLd = false;
|
|
20576
21311
|
continue;
|
|
@@ -21674,7 +22409,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
21674
22409
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "current" in this._cachedJsonLd) {
|
|
21675
22410
|
const prop = this._cachedJsonLd["current"];
|
|
21676
22411
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21677
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22412
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22413
|
+
v = await this.#current_fromJsonLd(doc, options);
|
|
22414
|
+
} catch (error) {
|
|
22415
|
+
if (!options.suppressError) throw error;
|
|
22416
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22417
|
+
property: "https://www.w3.org/ns/activitystreams#current",
|
|
22418
|
+
error
|
|
22419
|
+
});
|
|
22420
|
+
return null;
|
|
22421
|
+
}
|
|
21678
22422
|
}
|
|
21679
22423
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current.has(0)) {
|
|
21680
22424
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21795,7 +22539,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
21795
22539
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "first" in this._cachedJsonLd) {
|
|
21796
22540
|
const prop = this._cachedJsonLd["first"];
|
|
21797
22541
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21798
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22542
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22543
|
+
v = await this.#first_fromJsonLd(doc, options);
|
|
22544
|
+
} catch (error) {
|
|
22545
|
+
if (!options.suppressError) throw error;
|
|
22546
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22547
|
+
property: "https://www.w3.org/ns/activitystreams#first",
|
|
22548
|
+
error
|
|
22549
|
+
});
|
|
22550
|
+
return null;
|
|
22551
|
+
}
|
|
21799
22552
|
}
|
|
21800
22553
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first.has(0)) {
|
|
21801
22554
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -21916,7 +22669,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
21916
22669
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "last" in this._cachedJsonLd) {
|
|
21917
22670
|
const prop = this._cachedJsonLd["last"];
|
|
21918
22671
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
21919
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22672
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22673
|
+
v = await this.#last_fromJsonLd(doc, options);
|
|
22674
|
+
} catch (error) {
|
|
22675
|
+
if (!options.suppressError) throw error;
|
|
22676
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22677
|
+
property: "https://www.w3.org/ns/activitystreams#last",
|
|
22678
|
+
error
|
|
22679
|
+
});
|
|
22680
|
+
return null;
|
|
22681
|
+
}
|
|
21920
22682
|
}
|
|
21921
22683
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.has(0)) {
|
|
21922
22684
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22046,7 +22808,17 @@ var Collection = class Collection extends Object$1 {
|
|
|
22046
22808
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "items" in this._cachedJsonLd) {
|
|
22047
22809
|
const prop = this._cachedJsonLd["items"];
|
|
22048
22810
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
22049
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
22811
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
22812
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
22813
|
+
} catch (error) {
|
|
22814
|
+
if (!options.suppressError) throw error;
|
|
22815
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
22816
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
22817
|
+
index: i,
|
|
22818
|
+
error
|
|
22819
|
+
});
|
|
22820
|
+
continue;
|
|
22821
|
+
}
|
|
22050
22822
|
}
|
|
22051
22823
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
22052
22824
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22167,7 +22939,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22167
22939
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likesOf" in this._cachedJsonLd) {
|
|
22168
22940
|
const prop = this._cachedJsonLd["likesOf"];
|
|
22169
22941
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22170
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
22942
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
22943
|
+
v = await this.#likesOf_fromJsonLd(doc, options);
|
|
22944
|
+
} catch (error) {
|
|
22945
|
+
if (!options.suppressError) throw error;
|
|
22946
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
22947
|
+
property: "https://w3id.org/fep/5711#likesOf",
|
|
22948
|
+
error
|
|
22949
|
+
});
|
|
22950
|
+
return null;
|
|
22951
|
+
}
|
|
22171
22952
|
}
|
|
22172
22953
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.has(0)) {
|
|
22173
22954
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22287,7 +23068,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22287
23068
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "sharesOf" in this._cachedJsonLd) {
|
|
22288
23069
|
const prop = this._cachedJsonLd["sharesOf"];
|
|
22289
23070
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22290
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23071
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23072
|
+
v = await this.#sharesOf_fromJsonLd(doc, options);
|
|
23073
|
+
} catch (error) {
|
|
23074
|
+
if (!options.suppressError) throw error;
|
|
23075
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23076
|
+
property: "https://w3id.org/fep/5711#sharesOf",
|
|
23077
|
+
error
|
|
23078
|
+
});
|
|
23079
|
+
return null;
|
|
23080
|
+
}
|
|
22291
23081
|
}
|
|
22292
23082
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.has(0)) {
|
|
22293
23083
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22407,7 +23197,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22407
23197
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "repliesOf" in this._cachedJsonLd) {
|
|
22408
23198
|
const prop = this._cachedJsonLd["repliesOf"];
|
|
22409
23199
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22410
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23200
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23201
|
+
v = await this.#repliesOf_fromJsonLd(doc, options);
|
|
23202
|
+
} catch (error) {
|
|
23203
|
+
if (!options.suppressError) throw error;
|
|
23204
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23205
|
+
property: "https://w3id.org/fep/5711#repliesOf",
|
|
23206
|
+
error
|
|
23207
|
+
});
|
|
23208
|
+
return null;
|
|
23209
|
+
}
|
|
22411
23210
|
}
|
|
22412
23211
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.has(0)) {
|
|
22413
23212
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22527,7 +23326,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22527
23326
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inboxOf" in this._cachedJsonLd) {
|
|
22528
23327
|
const prop = this._cachedJsonLd["inboxOf"];
|
|
22529
23328
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22530
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23329
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23330
|
+
v = await this.#inboxOf_fromJsonLd(doc, options);
|
|
23331
|
+
} catch (error) {
|
|
23332
|
+
if (!options.suppressError) throw error;
|
|
23333
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23334
|
+
property: "https://w3id.org/fep/5711#inboxOf",
|
|
23335
|
+
error
|
|
23336
|
+
});
|
|
23337
|
+
return null;
|
|
23338
|
+
}
|
|
22531
23339
|
}
|
|
22532
23340
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.has(0)) {
|
|
22533
23341
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22647,7 +23455,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22647
23455
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outboxOf" in this._cachedJsonLd) {
|
|
22648
23456
|
const prop = this._cachedJsonLd["outboxOf"];
|
|
22649
23457
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22650
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23458
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23459
|
+
v = await this.#outboxOf_fromJsonLd(doc, options);
|
|
23460
|
+
} catch (error) {
|
|
23461
|
+
if (!options.suppressError) throw error;
|
|
23462
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23463
|
+
property: "https://w3id.org/fep/5711#outboxOf",
|
|
23464
|
+
error
|
|
23465
|
+
});
|
|
23466
|
+
return null;
|
|
23467
|
+
}
|
|
22651
23468
|
}
|
|
22652
23469
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.has(0)) {
|
|
22653
23470
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22767,7 +23584,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22767
23584
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followersOf" in this._cachedJsonLd) {
|
|
22768
23585
|
const prop = this._cachedJsonLd["followersOf"];
|
|
22769
23586
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22770
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23587
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23588
|
+
v = await this.#followersOf_fromJsonLd(doc, options);
|
|
23589
|
+
} catch (error) {
|
|
23590
|
+
if (!options.suppressError) throw error;
|
|
23591
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23592
|
+
property: "https://w3id.org/fep/5711#followersOf",
|
|
23593
|
+
error
|
|
23594
|
+
});
|
|
23595
|
+
return null;
|
|
23596
|
+
}
|
|
22771
23597
|
}
|
|
22772
23598
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.has(0)) {
|
|
22773
23599
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -22887,7 +23713,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
22887
23713
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followingOf" in this._cachedJsonLd) {
|
|
22888
23714
|
const prop = this._cachedJsonLd["followingOf"];
|
|
22889
23715
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
22890
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23716
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23717
|
+
v = await this.#followingOf_fromJsonLd(doc, options);
|
|
23718
|
+
} catch (error) {
|
|
23719
|
+
if (!options.suppressError) throw error;
|
|
23720
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23721
|
+
property: "https://w3id.org/fep/5711#followingOf",
|
|
23722
|
+
error
|
|
23723
|
+
});
|
|
23724
|
+
return null;
|
|
23725
|
+
}
|
|
22891
23726
|
}
|
|
22892
23727
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.has(0)) {
|
|
22893
23728
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23007,7 +23842,16 @@ var Collection = class Collection extends Object$1 {
|
|
|
23007
23842
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "likedOf" in this._cachedJsonLd) {
|
|
23008
23843
|
const prop = this._cachedJsonLd["likedOf"];
|
|
23009
23844
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23010
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
23845
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
23846
|
+
v = await this.#likedOf_fromJsonLd(doc, options);
|
|
23847
|
+
} catch (error) {
|
|
23848
|
+
if (!options.suppressError) throw error;
|
|
23849
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
23850
|
+
property: "https://w3id.org/fep/5711#likedOf",
|
|
23851
|
+
error
|
|
23852
|
+
});
|
|
23853
|
+
return null;
|
|
23854
|
+
}
|
|
23011
23855
|
}
|
|
23012
23856
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.has(0)) {
|
|
23013
23857
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -23991,7 +24835,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
23991
24835
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "partOf" in this._cachedJsonLd) {
|
|
23992
24836
|
const prop = this._cachedJsonLd["partOf"];
|
|
23993
24837
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
23994
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24838
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24839
|
+
v = await this.#partOf_fromJsonLd(doc, options);
|
|
24840
|
+
} catch (error) {
|
|
24841
|
+
if (!options.suppressError) throw error;
|
|
24842
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24843
|
+
property: "https://www.w3.org/ns/activitystreams#partOf",
|
|
24844
|
+
error
|
|
24845
|
+
});
|
|
24846
|
+
return null;
|
|
24847
|
+
}
|
|
23995
24848
|
}
|
|
23996
24849
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.has(0)) {
|
|
23997
24850
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -24111,7 +24964,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24111
24964
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "next" in this._cachedJsonLd) {
|
|
24112
24965
|
const prop = this._cachedJsonLd["next"];
|
|
24113
24966
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24114
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
24967
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
24968
|
+
v = await this.#next_fromJsonLd(doc, options);
|
|
24969
|
+
} catch (error) {
|
|
24970
|
+
if (!options.suppressError) throw error;
|
|
24971
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
24972
|
+
property: "https://www.w3.org/ns/activitystreams#next",
|
|
24973
|
+
error
|
|
24974
|
+
});
|
|
24975
|
+
return null;
|
|
24976
|
+
}
|
|
24115
24977
|
}
|
|
24116
24978
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.has(0)) {
|
|
24117
24979
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -24231,7 +25093,16 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
24231
25093
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "prev" in this._cachedJsonLd) {
|
|
24232
25094
|
const prop = this._cachedJsonLd["prev"];
|
|
24233
25095
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
24234
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
25096
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
25097
|
+
v = await this.#prev_fromJsonLd(doc, options);
|
|
25098
|
+
} catch (error) {
|
|
25099
|
+
if (!options.suppressError) throw error;
|
|
25100
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
25101
|
+
property: "https://www.w3.org/ns/activitystreams#prev",
|
|
25102
|
+
error
|
|
25103
|
+
});
|
|
25104
|
+
return null;
|
|
25105
|
+
}
|
|
24235
25106
|
}
|
|
24236
25107
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.has(0)) {
|
|
24237
25108
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26441,7 +27312,16 @@ var Group = class Group extends Object$1 {
|
|
|
26441
27312
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
26442
27313
|
const prop = this._cachedJsonLd["publicKey"];
|
|
26443
27314
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26444
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27315
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27316
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
27317
|
+
} catch (error) {
|
|
27318
|
+
if (!options.suppressError) throw error;
|
|
27319
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27320
|
+
property: "https://w3id.org/security#publicKey",
|
|
27321
|
+
error
|
|
27322
|
+
});
|
|
27323
|
+
return null;
|
|
27324
|
+
}
|
|
26445
27325
|
}
|
|
26446
27326
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
26447
27327
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26482,7 +27362,17 @@ var Group = class Group extends Object$1 {
|
|
|
26482
27362
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
26483
27363
|
const prop = this._cachedJsonLd["publicKey"];
|
|
26484
27364
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
26485
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27365
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
27366
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
27367
|
+
} catch (error) {
|
|
27368
|
+
if (!options.suppressError) throw error;
|
|
27369
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
27370
|
+
property: "https://w3id.org/security#publicKey",
|
|
27371
|
+
index: i,
|
|
27372
|
+
error
|
|
27373
|
+
});
|
|
27374
|
+
continue;
|
|
27375
|
+
}
|
|
26486
27376
|
}
|
|
26487
27377
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
26488
27378
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26606,7 +27496,16 @@ var Group = class Group extends Object$1 {
|
|
|
26606
27496
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
26607
27497
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
26608
27498
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26609
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27499
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27500
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
27501
|
+
} catch (error) {
|
|
27502
|
+
if (!options.suppressError) throw error;
|
|
27503
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27504
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
27505
|
+
error
|
|
27506
|
+
});
|
|
27507
|
+
return null;
|
|
27508
|
+
}
|
|
26610
27509
|
}
|
|
26611
27510
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
26612
27511
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26650,7 +27549,17 @@ var Group = class Group extends Object$1 {
|
|
|
26650
27549
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
26651
27550
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
26652
27551
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
26653
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
27552
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
27553
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
27554
|
+
} catch (error) {
|
|
27555
|
+
if (!options.suppressError) throw error;
|
|
27556
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
27557
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
27558
|
+
index: i,
|
|
27559
|
+
error
|
|
27560
|
+
});
|
|
27561
|
+
continue;
|
|
27562
|
+
}
|
|
26654
27563
|
}
|
|
26655
27564
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
26656
27565
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26805,7 +27714,16 @@ var Group = class Group extends Object$1 {
|
|
|
26805
27714
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
26806
27715
|
const prop = this._cachedJsonLd["inbox"];
|
|
26807
27716
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26808
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27717
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27718
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
27719
|
+
} catch (error) {
|
|
27720
|
+
if (!options.suppressError) throw error;
|
|
27721
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27722
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
27723
|
+
error
|
|
27724
|
+
});
|
|
27725
|
+
return null;
|
|
27726
|
+
}
|
|
26809
27727
|
}
|
|
26810
27728
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
26811
27729
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -26944,7 +27862,16 @@ var Group = class Group extends Object$1 {
|
|
|
26944
27862
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
26945
27863
|
const prop = this._cachedJsonLd["outbox"];
|
|
26946
27864
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
26947
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27865
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27866
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
27867
|
+
} catch (error) {
|
|
27868
|
+
if (!options.suppressError) throw error;
|
|
27869
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
27870
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
27871
|
+
error
|
|
27872
|
+
});
|
|
27873
|
+
return null;
|
|
27874
|
+
}
|
|
26948
27875
|
}
|
|
26949
27876
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
26950
27877
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27068,7 +27995,16 @@ var Group = class Group extends Object$1 {
|
|
|
27068
27995
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
27069
27996
|
const prop = this._cachedJsonLd["following"];
|
|
27070
27997
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27071
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
27998
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
27999
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
28000
|
+
} catch (error) {
|
|
28001
|
+
if (!options.suppressError) throw error;
|
|
28002
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28003
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
28004
|
+
error
|
|
28005
|
+
});
|
|
28006
|
+
return null;
|
|
28007
|
+
}
|
|
27072
28008
|
}
|
|
27073
28009
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
27074
28010
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27195,7 +28131,16 @@ var Group = class Group extends Object$1 {
|
|
|
27195
28131
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
27196
28132
|
const prop = this._cachedJsonLd["followers"];
|
|
27197
28133
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27198
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28134
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28135
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
28136
|
+
} catch (error) {
|
|
28137
|
+
if (!options.suppressError) throw error;
|
|
28138
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28139
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
28140
|
+
error
|
|
28141
|
+
});
|
|
28142
|
+
return null;
|
|
28143
|
+
}
|
|
27199
28144
|
}
|
|
27200
28145
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
27201
28146
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27320,7 +28265,16 @@ var Group = class Group extends Object$1 {
|
|
|
27320
28265
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
27321
28266
|
const prop = this._cachedJsonLd["liked"];
|
|
27322
28267
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27323
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28268
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28269
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
28270
|
+
} catch (error) {
|
|
28271
|
+
if (!options.suppressError) throw error;
|
|
28272
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28273
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
28274
|
+
error
|
|
28275
|
+
});
|
|
28276
|
+
return null;
|
|
28277
|
+
}
|
|
27324
28278
|
}
|
|
27325
28279
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
27326
28280
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27443,7 +28397,16 @@ var Group = class Group extends Object$1 {
|
|
|
27443
28397
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
27444
28398
|
const prop = this._cachedJsonLd["featured"];
|
|
27445
28399
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27446
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28400
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28401
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
28402
|
+
} catch (error) {
|
|
28403
|
+
if (!options.suppressError) throw error;
|
|
28404
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28405
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
28406
|
+
error
|
|
28407
|
+
});
|
|
28408
|
+
return null;
|
|
28409
|
+
}
|
|
27447
28410
|
}
|
|
27448
28411
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
27449
28412
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27566,7 +28529,16 @@ var Group = class Group extends Object$1 {
|
|
|
27566
28529
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
27567
28530
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
27568
28531
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27569
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28532
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28533
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
28534
|
+
} catch (error) {
|
|
28535
|
+
if (!options.suppressError) throw error;
|
|
28536
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28537
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
28538
|
+
error
|
|
28539
|
+
});
|
|
28540
|
+
return null;
|
|
28541
|
+
}
|
|
27570
28542
|
}
|
|
27571
28543
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
27572
28544
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27685,7 +28657,17 @@ var Group = class Group extends Object$1 {
|
|
|
27685
28657
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
27686
28658
|
const prop = this._cachedJsonLd["streams"];
|
|
27687
28659
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
27688
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
28660
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
28661
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
28662
|
+
} catch (error) {
|
|
28663
|
+
if (!options.suppressError) throw error;
|
|
28664
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
28665
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
28666
|
+
index: i,
|
|
28667
|
+
error
|
|
28668
|
+
});
|
|
28669
|
+
continue;
|
|
28670
|
+
}
|
|
27689
28671
|
}
|
|
27690
28672
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
27691
28673
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -27894,7 +28876,16 @@ var Group = class Group extends Object$1 {
|
|
|
27894
28876
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
27895
28877
|
const prop = this._cachedJsonLd["movedTo"];
|
|
27896
28878
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
27897
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
28879
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
28880
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
28881
|
+
} catch (error) {
|
|
28882
|
+
if (!options.suppressError) throw error;
|
|
28883
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
28884
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
28885
|
+
error
|
|
28886
|
+
});
|
|
28887
|
+
return null;
|
|
28888
|
+
}
|
|
27898
28889
|
}
|
|
27899
28890
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
27900
28891
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28063,7 +29054,16 @@ var Group = class Group extends Object$1 {
|
|
|
28063
29054
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
28064
29055
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
28065
29056
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28066
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29057
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29058
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
29059
|
+
} catch (error) {
|
|
29060
|
+
if (!options.suppressError) throw error;
|
|
29061
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29062
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
29063
|
+
error
|
|
29064
|
+
});
|
|
29065
|
+
return null;
|
|
29066
|
+
}
|
|
28067
29067
|
}
|
|
28068
29068
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
28069
29069
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28107,7 +29107,17 @@ var Group = class Group extends Object$1 {
|
|
|
28107
29107
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
28108
29108
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
28109
29109
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28110
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29110
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29111
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
29112
|
+
} catch (error) {
|
|
29113
|
+
if (!options.suppressError) throw error;
|
|
29114
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29115
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
29116
|
+
index: i,
|
|
29117
|
+
error
|
|
29118
|
+
});
|
|
29119
|
+
continue;
|
|
29120
|
+
}
|
|
28111
29121
|
}
|
|
28112
29122
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
28113
29123
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28231,7 +29241,16 @@ var Group = class Group extends Object$1 {
|
|
|
28231
29241
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
28232
29242
|
const prop = this._cachedJsonLd["service"];
|
|
28233
29243
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
28234
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
29244
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
29245
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
29246
|
+
} catch (error) {
|
|
29247
|
+
if (!options.suppressError) throw error;
|
|
29248
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
29249
|
+
property: "https://www.w3.org/ns/did#service",
|
|
29250
|
+
error
|
|
29251
|
+
});
|
|
29252
|
+
return null;
|
|
29253
|
+
}
|
|
28235
29254
|
}
|
|
28236
29255
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
28237
29256
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -28275,7 +29294,17 @@ var Group = class Group extends Object$1 {
|
|
|
28275
29294
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
28276
29295
|
const prop = this._cachedJsonLd["service"];
|
|
28277
29296
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
28278
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
29297
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
29298
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
29299
|
+
} catch (error) {
|
|
29300
|
+
if (!options.suppressError) throw error;
|
|
29301
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
29302
|
+
property: "https://www.w3.org/ns/did#service",
|
|
29303
|
+
index: i,
|
|
29304
|
+
error
|
|
29305
|
+
});
|
|
29306
|
+
continue;
|
|
29307
|
+
}
|
|
28279
29308
|
}
|
|
28280
29309
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
28281
29310
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -29750,7 +30779,17 @@ var Link = class Link {
|
|
|
29750
30779
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "preview" in this._cachedJsonLd) {
|
|
29751
30780
|
const prop = this._cachedJsonLd["preview"];
|
|
29752
30781
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
29753
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
30782
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
30783
|
+
v = await this.#preview_fromJsonLd(obj, options);
|
|
30784
|
+
} catch (error) {
|
|
30785
|
+
if (!options.suppressError) throw error;
|
|
30786
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
30787
|
+
property: "https://www.w3.org/ns/activitystreams#preview",
|
|
30788
|
+
index: i,
|
|
30789
|
+
error
|
|
30790
|
+
});
|
|
30791
|
+
continue;
|
|
30792
|
+
}
|
|
29754
30793
|
}
|
|
29755
30794
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.has(0)) {
|
|
29756
30795
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -31930,7 +32969,16 @@ var Note = class Note extends Object$1 {
|
|
|
31930
32969
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
31931
32970
|
const prop = this._cachedJsonLd["quote"];
|
|
31932
32971
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
31933
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
32972
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
32973
|
+
v = await this.#quote_fromJsonLd(doc, options);
|
|
32974
|
+
} catch (error) {
|
|
32975
|
+
if (!options.suppressError) throw error;
|
|
32976
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
32977
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
32978
|
+
error
|
|
32979
|
+
});
|
|
32980
|
+
return null;
|
|
32981
|
+
}
|
|
31934
32982
|
}
|
|
31935
32983
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
31936
32984
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -32067,7 +33115,16 @@ var Note = class Note extends Object$1 {
|
|
|
32067
33115
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
32068
33116
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
32069
33117
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
32070
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
33118
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
33119
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, options);
|
|
33120
|
+
} catch (error) {
|
|
33121
|
+
if (!options.suppressError) throw error;
|
|
33122
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
33123
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
33124
|
+
error
|
|
33125
|
+
});
|
|
33126
|
+
return null;
|
|
33127
|
+
}
|
|
32071
33128
|
}
|
|
32072
33129
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
32073
33130
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -32320,7 +33377,7 @@ var Note = class Note extends Object$1 {
|
|
|
32320
33377
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
32321
33378
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
32322
33379
|
if (v == null) continue;
|
|
32323
|
-
const decoded =
|
|
33380
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
32324
33381
|
if (typeof decoded === "undefined") {
|
|
32325
33382
|
shouldCacheJsonLd = false;
|
|
32326
33383
|
continue;
|
|
@@ -32549,7 +33606,17 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
32549
33606
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
32550
33607
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
32551
33608
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
32552
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
33609
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
33610
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
33611
|
+
} catch (error) {
|
|
33612
|
+
if (!options.suppressError) throw error;
|
|
33613
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
33614
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
33615
|
+
index: i,
|
|
33616
|
+
error
|
|
33617
|
+
});
|
|
33618
|
+
continue;
|
|
33619
|
+
}
|
|
32553
33620
|
}
|
|
32554
33621
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
32555
33622
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33040,7 +34107,17 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
33040
34107
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "orderedItems" in this._cachedJsonLd) {
|
|
33041
34108
|
const prop = this._cachedJsonLd["orderedItems"];
|
|
33042
34109
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
33043
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
34110
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
34111
|
+
v = await this.#item_fromJsonLd(obj, options);
|
|
34112
|
+
} catch (error) {
|
|
34113
|
+
if (!options.suppressError) throw error;
|
|
34114
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
34115
|
+
property: "https://www.w3.org/ns/activitystreams#items",
|
|
34116
|
+
index: i,
|
|
34117
|
+
error
|
|
34118
|
+
});
|
|
34119
|
+
continue;
|
|
34120
|
+
}
|
|
33044
34121
|
}
|
|
33045
34122
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.has(0)) {
|
|
33046
34123
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33836,7 +34913,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
33836
34913
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
33837
34914
|
const prop = this._cachedJsonLd["publicKey"];
|
|
33838
34915
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
33839
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
34916
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
34917
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
34918
|
+
} catch (error) {
|
|
34919
|
+
if (!options.suppressError) throw error;
|
|
34920
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
34921
|
+
property: "https://w3id.org/security#publicKey",
|
|
34922
|
+
error
|
|
34923
|
+
});
|
|
34924
|
+
return null;
|
|
34925
|
+
}
|
|
33840
34926
|
}
|
|
33841
34927
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
33842
34928
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -33877,7 +34963,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
33877
34963
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
33878
34964
|
const prop = this._cachedJsonLd["publicKey"];
|
|
33879
34965
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
33880
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
34966
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
34967
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
34968
|
+
} catch (error) {
|
|
34969
|
+
if (!options.suppressError) throw error;
|
|
34970
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
34971
|
+
property: "https://w3id.org/security#publicKey",
|
|
34972
|
+
index: i,
|
|
34973
|
+
error
|
|
34974
|
+
});
|
|
34975
|
+
continue;
|
|
34976
|
+
}
|
|
33881
34977
|
}
|
|
33882
34978
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
33883
34979
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34001,7 +35097,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34001
35097
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
34002
35098
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
34003
35099
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34004
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35100
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35101
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
35102
|
+
} catch (error) {
|
|
35103
|
+
if (!options.suppressError) throw error;
|
|
35104
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35105
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
35106
|
+
error
|
|
35107
|
+
});
|
|
35108
|
+
return null;
|
|
35109
|
+
}
|
|
34005
35110
|
}
|
|
34006
35111
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
34007
35112
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34045,7 +35150,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
34045
35150
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
34046
35151
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
34047
35152
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
34048
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
35153
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
35154
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
35155
|
+
} catch (error) {
|
|
35156
|
+
if (!options.suppressError) throw error;
|
|
35157
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
35158
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
35159
|
+
index: i,
|
|
35160
|
+
error
|
|
35161
|
+
});
|
|
35162
|
+
continue;
|
|
35163
|
+
}
|
|
34049
35164
|
}
|
|
34050
35165
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
34051
35166
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34200,7 +35315,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34200
35315
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
34201
35316
|
const prop = this._cachedJsonLd["inbox"];
|
|
34202
35317
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34203
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35318
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35319
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
35320
|
+
} catch (error) {
|
|
35321
|
+
if (!options.suppressError) throw error;
|
|
35322
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35323
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
35324
|
+
error
|
|
35325
|
+
});
|
|
35326
|
+
return null;
|
|
35327
|
+
}
|
|
34204
35328
|
}
|
|
34205
35329
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
34206
35330
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34339,7 +35463,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34339
35463
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
34340
35464
|
const prop = this._cachedJsonLd["outbox"];
|
|
34341
35465
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34342
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35466
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35467
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
35468
|
+
} catch (error) {
|
|
35469
|
+
if (!options.suppressError) throw error;
|
|
35470
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35471
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
35472
|
+
error
|
|
35473
|
+
});
|
|
35474
|
+
return null;
|
|
35475
|
+
}
|
|
34343
35476
|
}
|
|
34344
35477
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
34345
35478
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34463,7 +35596,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34463
35596
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
34464
35597
|
const prop = this._cachedJsonLd["following"];
|
|
34465
35598
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34466
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35599
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35600
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
35601
|
+
} catch (error) {
|
|
35602
|
+
if (!options.suppressError) throw error;
|
|
35603
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35604
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
35605
|
+
error
|
|
35606
|
+
});
|
|
35607
|
+
return null;
|
|
35608
|
+
}
|
|
34467
35609
|
}
|
|
34468
35610
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
34469
35611
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34590,7 +35732,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34590
35732
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
34591
35733
|
const prop = this._cachedJsonLd["followers"];
|
|
34592
35734
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34593
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35735
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35736
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
35737
|
+
} catch (error) {
|
|
35738
|
+
if (!options.suppressError) throw error;
|
|
35739
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35740
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
35741
|
+
error
|
|
35742
|
+
});
|
|
35743
|
+
return null;
|
|
35744
|
+
}
|
|
34594
35745
|
}
|
|
34595
35746
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
34596
35747
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34715,7 +35866,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34715
35866
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
34716
35867
|
const prop = this._cachedJsonLd["liked"];
|
|
34717
35868
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34718
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
35869
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
35870
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
35871
|
+
} catch (error) {
|
|
35872
|
+
if (!options.suppressError) throw error;
|
|
35873
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
35874
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
35875
|
+
error
|
|
35876
|
+
});
|
|
35877
|
+
return null;
|
|
35878
|
+
}
|
|
34719
35879
|
}
|
|
34720
35880
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
34721
35881
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34838,7 +35998,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34838
35998
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
34839
35999
|
const prop = this._cachedJsonLd["featured"];
|
|
34840
36000
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34841
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36001
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36002
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
36003
|
+
} catch (error) {
|
|
36004
|
+
if (!options.suppressError) throw error;
|
|
36005
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36006
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
36007
|
+
error
|
|
36008
|
+
});
|
|
36009
|
+
return null;
|
|
36010
|
+
}
|
|
34842
36011
|
}
|
|
34843
36012
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
34844
36013
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -34961,7 +36130,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
34961
36130
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
34962
36131
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
34963
36132
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
34964
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36133
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36134
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
36135
|
+
} catch (error) {
|
|
36136
|
+
if (!options.suppressError) throw error;
|
|
36137
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36138
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
36139
|
+
error
|
|
36140
|
+
});
|
|
36141
|
+
return null;
|
|
36142
|
+
}
|
|
34965
36143
|
}
|
|
34966
36144
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
34967
36145
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35080,7 +36258,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
35080
36258
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
35081
36259
|
const prop = this._cachedJsonLd["streams"];
|
|
35082
36260
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35083
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36261
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36262
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
36263
|
+
} catch (error) {
|
|
36264
|
+
if (!options.suppressError) throw error;
|
|
36265
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36266
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
36267
|
+
index: i,
|
|
36268
|
+
error
|
|
36269
|
+
});
|
|
36270
|
+
continue;
|
|
36271
|
+
}
|
|
35084
36272
|
}
|
|
35085
36273
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
35086
36274
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35289,7 +36477,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
35289
36477
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
35290
36478
|
const prop = this._cachedJsonLd["movedTo"];
|
|
35291
36479
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35292
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36480
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36481
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
36482
|
+
} catch (error) {
|
|
36483
|
+
if (!options.suppressError) throw error;
|
|
36484
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36485
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
36486
|
+
error
|
|
36487
|
+
});
|
|
36488
|
+
return null;
|
|
36489
|
+
}
|
|
35293
36490
|
}
|
|
35294
36491
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
35295
36492
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35458,7 +36655,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
35458
36655
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
35459
36656
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
35460
36657
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35461
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36658
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36659
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
36660
|
+
} catch (error) {
|
|
36661
|
+
if (!options.suppressError) throw error;
|
|
36662
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36663
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
36664
|
+
error
|
|
36665
|
+
});
|
|
36666
|
+
return null;
|
|
36667
|
+
}
|
|
35462
36668
|
}
|
|
35463
36669
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
35464
36670
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35502,7 +36708,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
35502
36708
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
35503
36709
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
35504
36710
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35505
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36711
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36712
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
36713
|
+
} catch (error) {
|
|
36714
|
+
if (!options.suppressError) throw error;
|
|
36715
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36716
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
36717
|
+
index: i,
|
|
36718
|
+
error
|
|
36719
|
+
});
|
|
36720
|
+
continue;
|
|
36721
|
+
}
|
|
35506
36722
|
}
|
|
35507
36723
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
35508
36724
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35626,7 +36842,16 @@ var Organization = class Organization extends Object$1 {
|
|
|
35626
36842
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
35627
36843
|
const prop = this._cachedJsonLd["service"];
|
|
35628
36844
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
35629
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
36845
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
36846
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
36847
|
+
} catch (error) {
|
|
36848
|
+
if (!options.suppressError) throw error;
|
|
36849
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
36850
|
+
property: "https://www.w3.org/ns/did#service",
|
|
36851
|
+
error
|
|
36852
|
+
});
|
|
36853
|
+
return null;
|
|
36854
|
+
}
|
|
35630
36855
|
}
|
|
35631
36856
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
35632
36857
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -35670,7 +36895,17 @@ var Organization = class Organization extends Object$1 {
|
|
|
35670
36895
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
35671
36896
|
const prop = this._cachedJsonLd["service"];
|
|
35672
36897
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
35673
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
36898
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
36899
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
36900
|
+
} catch (error) {
|
|
36901
|
+
if (!options.suppressError) throw error;
|
|
36902
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
36903
|
+
property: "https://www.w3.org/ns/did#service",
|
|
36904
|
+
index: i,
|
|
36905
|
+
error
|
|
36906
|
+
});
|
|
36907
|
+
continue;
|
|
36908
|
+
}
|
|
35674
36909
|
}
|
|
35675
36910
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
35676
36911
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37395,7 +38630,16 @@ var Person = class Person extends Object$1 {
|
|
|
37395
38630
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
37396
38631
|
const prop = this._cachedJsonLd["publicKey"];
|
|
37397
38632
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37398
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38633
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38634
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
38635
|
+
} catch (error) {
|
|
38636
|
+
if (!options.suppressError) throw error;
|
|
38637
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38638
|
+
property: "https://w3id.org/security#publicKey",
|
|
38639
|
+
error
|
|
38640
|
+
});
|
|
38641
|
+
return null;
|
|
38642
|
+
}
|
|
37399
38643
|
}
|
|
37400
38644
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
37401
38645
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37436,7 +38680,17 @@ var Person = class Person extends Object$1 {
|
|
|
37436
38680
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
37437
38681
|
const prop = this._cachedJsonLd["publicKey"];
|
|
37438
38682
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37439
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
38683
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38684
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
38685
|
+
} catch (error) {
|
|
38686
|
+
if (!options.suppressError) throw error;
|
|
38687
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38688
|
+
property: "https://w3id.org/security#publicKey",
|
|
38689
|
+
index: i,
|
|
38690
|
+
error
|
|
38691
|
+
});
|
|
38692
|
+
continue;
|
|
38693
|
+
}
|
|
37440
38694
|
}
|
|
37441
38695
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
37442
38696
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37560,7 +38814,16 @@ var Person = class Person extends Object$1 {
|
|
|
37560
38814
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
37561
38815
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
37562
38816
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37563
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
38817
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
38818
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
38819
|
+
} catch (error) {
|
|
38820
|
+
if (!options.suppressError) throw error;
|
|
38821
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
38822
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
38823
|
+
error
|
|
38824
|
+
});
|
|
38825
|
+
return null;
|
|
38826
|
+
}
|
|
37564
38827
|
}
|
|
37565
38828
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
37566
38829
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37604,7 +38867,17 @@ var Person = class Person extends Object$1 {
|
|
|
37604
38867
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
37605
38868
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
37606
38869
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
37607
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
38870
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
38871
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
38872
|
+
} catch (error) {
|
|
38873
|
+
if (!options.suppressError) throw error;
|
|
38874
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
38875
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
38876
|
+
index: i,
|
|
38877
|
+
error
|
|
38878
|
+
});
|
|
38879
|
+
continue;
|
|
38880
|
+
}
|
|
37608
38881
|
}
|
|
37609
38882
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
37610
38883
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37759,7 +39032,16 @@ var Person = class Person extends Object$1 {
|
|
|
37759
39032
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
37760
39033
|
const prop = this._cachedJsonLd["inbox"];
|
|
37761
39034
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37762
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39035
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39036
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
39037
|
+
} catch (error) {
|
|
39038
|
+
if (!options.suppressError) throw error;
|
|
39039
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39040
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
39041
|
+
error
|
|
39042
|
+
});
|
|
39043
|
+
return null;
|
|
39044
|
+
}
|
|
37763
39045
|
}
|
|
37764
39046
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
37765
39047
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -37898,7 +39180,16 @@ var Person = class Person extends Object$1 {
|
|
|
37898
39180
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
37899
39181
|
const prop = this._cachedJsonLd["outbox"];
|
|
37900
39182
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
37901
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39183
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39184
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
39185
|
+
} catch (error) {
|
|
39186
|
+
if (!options.suppressError) throw error;
|
|
39187
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39188
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
39189
|
+
error
|
|
39190
|
+
});
|
|
39191
|
+
return null;
|
|
39192
|
+
}
|
|
37902
39193
|
}
|
|
37903
39194
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
37904
39195
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38022,7 +39313,16 @@ var Person = class Person extends Object$1 {
|
|
|
38022
39313
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
38023
39314
|
const prop = this._cachedJsonLd["following"];
|
|
38024
39315
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38025
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39316
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39317
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
39318
|
+
} catch (error) {
|
|
39319
|
+
if (!options.suppressError) throw error;
|
|
39320
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39321
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
39322
|
+
error
|
|
39323
|
+
});
|
|
39324
|
+
return null;
|
|
39325
|
+
}
|
|
38026
39326
|
}
|
|
38027
39327
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
38028
39328
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38149,7 +39449,16 @@ var Person = class Person extends Object$1 {
|
|
|
38149
39449
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
38150
39450
|
const prop = this._cachedJsonLd["followers"];
|
|
38151
39451
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38152
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39452
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39453
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
39454
|
+
} catch (error) {
|
|
39455
|
+
if (!options.suppressError) throw error;
|
|
39456
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39457
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
39458
|
+
error
|
|
39459
|
+
});
|
|
39460
|
+
return null;
|
|
39461
|
+
}
|
|
38153
39462
|
}
|
|
38154
39463
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
38155
39464
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38274,7 +39583,16 @@ var Person = class Person extends Object$1 {
|
|
|
38274
39583
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
38275
39584
|
const prop = this._cachedJsonLd["liked"];
|
|
38276
39585
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38277
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39586
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39587
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
39588
|
+
} catch (error) {
|
|
39589
|
+
if (!options.suppressError) throw error;
|
|
39590
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39591
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
39592
|
+
error
|
|
39593
|
+
});
|
|
39594
|
+
return null;
|
|
39595
|
+
}
|
|
38278
39596
|
}
|
|
38279
39597
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
38280
39598
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38397,7 +39715,16 @@ var Person = class Person extends Object$1 {
|
|
|
38397
39715
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
38398
39716
|
const prop = this._cachedJsonLd["featured"];
|
|
38399
39717
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38400
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39718
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39719
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
39720
|
+
} catch (error) {
|
|
39721
|
+
if (!options.suppressError) throw error;
|
|
39722
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39723
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
39724
|
+
error
|
|
39725
|
+
});
|
|
39726
|
+
return null;
|
|
39727
|
+
}
|
|
38401
39728
|
}
|
|
38402
39729
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
38403
39730
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38520,7 +39847,16 @@ var Person = class Person extends Object$1 {
|
|
|
38520
39847
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
38521
39848
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
38522
39849
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38523
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
39850
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
39851
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
39852
|
+
} catch (error) {
|
|
39853
|
+
if (!options.suppressError) throw error;
|
|
39854
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
39855
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
39856
|
+
error
|
|
39857
|
+
});
|
|
39858
|
+
return null;
|
|
39859
|
+
}
|
|
38524
39860
|
}
|
|
38525
39861
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
38526
39862
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38639,7 +39975,17 @@ var Person = class Person extends Object$1 {
|
|
|
38639
39975
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
38640
39976
|
const prop = this._cachedJsonLd["streams"];
|
|
38641
39977
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
38642
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
39978
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
39979
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
39980
|
+
} catch (error) {
|
|
39981
|
+
if (!options.suppressError) throw error;
|
|
39982
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
39983
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
39984
|
+
index: i,
|
|
39985
|
+
error
|
|
39986
|
+
});
|
|
39987
|
+
continue;
|
|
39988
|
+
}
|
|
38643
39989
|
}
|
|
38644
39990
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
38645
39991
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -38848,7 +40194,16 @@ var Person = class Person extends Object$1 {
|
|
|
38848
40194
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
38849
40195
|
const prop = this._cachedJsonLd["movedTo"];
|
|
38850
40196
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
38851
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40197
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40198
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
40199
|
+
} catch (error) {
|
|
40200
|
+
if (!options.suppressError) throw error;
|
|
40201
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40202
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
40203
|
+
error
|
|
40204
|
+
});
|
|
40205
|
+
return null;
|
|
40206
|
+
}
|
|
38852
40207
|
}
|
|
38853
40208
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
38854
40209
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39017,7 +40372,16 @@ var Person = class Person extends Object$1 {
|
|
|
39017
40372
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
39018
40373
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
39019
40374
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39020
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40375
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40376
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
40377
|
+
} catch (error) {
|
|
40378
|
+
if (!options.suppressError) throw error;
|
|
40379
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40380
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
40381
|
+
error
|
|
40382
|
+
});
|
|
40383
|
+
return null;
|
|
40384
|
+
}
|
|
39021
40385
|
}
|
|
39022
40386
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
39023
40387
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39061,7 +40425,17 @@ var Person = class Person extends Object$1 {
|
|
|
39061
40425
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
39062
40426
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
39063
40427
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
39064
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40428
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40429
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
40430
|
+
} catch (error) {
|
|
40431
|
+
if (!options.suppressError) throw error;
|
|
40432
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40433
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
40434
|
+
index: i,
|
|
40435
|
+
error
|
|
40436
|
+
});
|
|
40437
|
+
continue;
|
|
40438
|
+
}
|
|
39065
40439
|
}
|
|
39066
40440
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
39067
40441
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39185,7 +40559,16 @@ var Person = class Person extends Object$1 {
|
|
|
39185
40559
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
39186
40560
|
const prop = this._cachedJsonLd["service"];
|
|
39187
40561
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
39188
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
40562
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
40563
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
40564
|
+
} catch (error) {
|
|
40565
|
+
if (!options.suppressError) throw error;
|
|
40566
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
40567
|
+
property: "https://www.w3.org/ns/did#service",
|
|
40568
|
+
error
|
|
40569
|
+
});
|
|
40570
|
+
return null;
|
|
40571
|
+
}
|
|
39189
40572
|
}
|
|
39190
40573
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
39191
40574
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -39229,7 +40612,17 @@ var Person = class Person extends Object$1 {
|
|
|
39229
40612
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
39230
40613
|
const prop = this._cachedJsonLd["service"];
|
|
39231
40614
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
39232
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
40615
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
40616
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
40617
|
+
} catch (error) {
|
|
40618
|
+
if (!options.suppressError) throw error;
|
|
40619
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
40620
|
+
property: "https://www.w3.org/ns/did#service",
|
|
40621
|
+
index: i,
|
|
40622
|
+
error
|
|
40623
|
+
});
|
|
40624
|
+
continue;
|
|
40625
|
+
}
|
|
39233
40626
|
}
|
|
39234
40627
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
39235
40628
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -40962,7 +42355,16 @@ var Profile = class Profile extends Object$1 {
|
|
|
40962
42355
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "describes" in this._cachedJsonLd) {
|
|
40963
42356
|
const prop = this._cachedJsonLd["describes"];
|
|
40964
42357
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
40965
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
42358
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
42359
|
+
v = await this.#describes_fromJsonLd(doc, options);
|
|
42360
|
+
} catch (error) {
|
|
42361
|
+
if (!options.suppressError) throw error;
|
|
42362
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
42363
|
+
property: "https://www.w3.org/ns/activitystreams#describes",
|
|
42364
|
+
error
|
|
42365
|
+
});
|
|
42366
|
+
return null;
|
|
42367
|
+
}
|
|
40966
42368
|
}
|
|
40967
42369
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.has(0)) {
|
|
40968
42370
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -41366,7 +42768,17 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41366
42768
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "oneOf" in this._cachedJsonLd) {
|
|
41367
42769
|
const prop = this._cachedJsonLd["oneOf"];
|
|
41368
42770
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
41369
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
42771
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
42772
|
+
v = await this.#exclusiveOption_fromJsonLd(obj, options);
|
|
42773
|
+
} catch (error) {
|
|
42774
|
+
if (!options.suppressError) throw error;
|
|
42775
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
42776
|
+
property: "https://www.w3.org/ns/activitystreams#oneOf",
|
|
42777
|
+
index: i,
|
|
42778
|
+
error
|
|
42779
|
+
});
|
|
42780
|
+
continue;
|
|
42781
|
+
}
|
|
41370
42782
|
}
|
|
41371
42783
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.has(0)) {
|
|
41372
42784
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -41488,7 +42900,17 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41488
42900
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "anyOf" in this._cachedJsonLd) {
|
|
41489
42901
|
const prop = this._cachedJsonLd["anyOf"];
|
|
41490
42902
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
41491
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
42903
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
42904
|
+
v = await this.#inclusiveOption_fromJsonLd(obj, options);
|
|
42905
|
+
} catch (error) {
|
|
42906
|
+
if (!options.suppressError) throw error;
|
|
42907
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
42908
|
+
property: "https://www.w3.org/ns/activitystreams#anyOf",
|
|
42909
|
+
index: i,
|
|
42910
|
+
error
|
|
42911
|
+
});
|
|
42912
|
+
continue;
|
|
42913
|
+
}
|
|
41492
42914
|
}
|
|
41493
42915
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.has(0)) {
|
|
41494
42916
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -41627,7 +43049,16 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41627
43049
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quote" in this._cachedJsonLd) {
|
|
41628
43050
|
const prop = this._cachedJsonLd["quote"];
|
|
41629
43051
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
41630
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43052
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
43053
|
+
v = await this.#quote_fromJsonLd(doc, options);
|
|
43054
|
+
} catch (error) {
|
|
43055
|
+
if (!options.suppressError) throw error;
|
|
43056
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
43057
|
+
property: "https://w3id.org/fep/044f#quote",
|
|
43058
|
+
error
|
|
43059
|
+
});
|
|
43060
|
+
return null;
|
|
43061
|
+
}
|
|
41631
43062
|
}
|
|
41632
43063
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.has(0)) {
|
|
41633
43064
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -41764,7 +43195,16 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
41764
43195
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "quoteAuthorization" in this._cachedJsonLd) {
|
|
41765
43196
|
const prop = this._cachedJsonLd["quoteAuthorization"];
|
|
41766
43197
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
41767
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
43198
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
43199
|
+
v = await this.#quoteAuthorization_fromJsonLd(doc, options);
|
|
43200
|
+
} catch (error) {
|
|
43201
|
+
if (!options.suppressError) throw error;
|
|
43202
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
43203
|
+
property: "https://w3id.org/fep/044f#quoteAuthorization",
|
|
43204
|
+
error
|
|
43205
|
+
});
|
|
43206
|
+
return null;
|
|
43207
|
+
}
|
|
41768
43208
|
}
|
|
41769
43209
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.has(0)) {
|
|
41770
43210
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42049,7 +43489,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
42049
43489
|
if (_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null || _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length < 1) _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array = values["http://fedibird.com/ns#quoteUri"];
|
|
42050
43490
|
for (const v of _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array == null ? [] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array.length === 1 && "@list" in _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0] ? _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array[0]["@list"] : _K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl__array) {
|
|
42051
43491
|
if (v == null) continue;
|
|
42052
|
-
const decoded =
|
|
43492
|
+
const decoded = typeof v === "object" && (typeof v["@id"] === "string" && canDecodeIri(v["@id"]) || typeof v["@value"] === "string" && canDecodeIri(v["@value"])) ? decodeIri(typeof v["@id"] === "string" ? v["@id"] : v["@value"]) : void 0;
|
|
42053
43493
|
if (typeof decoded === "undefined") {
|
|
42054
43494
|
shouldCacheJsonLd = false;
|
|
42055
43495
|
continue;
|
|
@@ -42651,7 +44091,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42651
44091
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "subject" in this._cachedJsonLd) {
|
|
42652
44092
|
const prop = this._cachedJsonLd["subject"];
|
|
42653
44093
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42654
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44094
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44095
|
+
v = await this.#subject_fromJsonLd(doc, options);
|
|
44096
|
+
} catch (error) {
|
|
44097
|
+
if (!options.suppressError) throw error;
|
|
44098
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44099
|
+
property: "https://www.w3.org/ns/activitystreams#subject",
|
|
44100
|
+
error
|
|
44101
|
+
});
|
|
44102
|
+
return null;
|
|
44103
|
+
}
|
|
42655
44104
|
}
|
|
42656
44105
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.has(0)) {
|
|
42657
44106
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42771,7 +44220,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42771
44220
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
42772
44221
|
const prop = this._cachedJsonLd["object"];
|
|
42773
44222
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42774
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44223
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44224
|
+
v = await this.#object_fromJsonLd(doc, options);
|
|
44225
|
+
} catch (error) {
|
|
44226
|
+
if (!options.suppressError) throw error;
|
|
44227
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44228
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
44229
|
+
error
|
|
44230
|
+
});
|
|
44231
|
+
return null;
|
|
44232
|
+
}
|
|
42775
44233
|
}
|
|
42776
44234
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
42777
44235
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42812,7 +44270,17 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42812
44270
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "object" in this._cachedJsonLd) {
|
|
42813
44271
|
const prop = this._cachedJsonLd["object"];
|
|
42814
44272
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
42815
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44273
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44274
|
+
v = await this.#object_fromJsonLd(obj, options);
|
|
44275
|
+
} catch (error) {
|
|
44276
|
+
if (!options.suppressError) throw error;
|
|
44277
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44278
|
+
property: "https://www.w3.org/ns/activitystreams#object",
|
|
44279
|
+
index: i,
|
|
44280
|
+
error
|
|
44281
|
+
});
|
|
44282
|
+
continue;
|
|
44283
|
+
}
|
|
42816
44284
|
}
|
|
42817
44285
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.has(0)) {
|
|
42818
44286
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42935,7 +44403,16 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42935
44403
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
42936
44404
|
const prop = this._cachedJsonLd["relationship"];
|
|
42937
44405
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
42938
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
44406
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
44407
|
+
v = await this.#relationship_fromJsonLd(doc, options);
|
|
44408
|
+
} catch (error) {
|
|
44409
|
+
if (!options.suppressError) throw error;
|
|
44410
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
44411
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
44412
|
+
error
|
|
44413
|
+
});
|
|
44414
|
+
return null;
|
|
44415
|
+
}
|
|
42939
44416
|
}
|
|
42940
44417
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
42941
44418
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -42978,7 +44455,17 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
42978
44455
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "relationship" in this._cachedJsonLd) {
|
|
42979
44456
|
const prop = this._cachedJsonLd["relationship"];
|
|
42980
44457
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
42981
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
44458
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
44459
|
+
v = await this.#relationship_fromJsonLd(obj, options);
|
|
44460
|
+
} catch (error) {
|
|
44461
|
+
if (!options.suppressError) throw error;
|
|
44462
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
44463
|
+
property: "https://www.w3.org/ns/activitystreams#relationship",
|
|
44464
|
+
index: i,
|
|
44465
|
+
error
|
|
44466
|
+
});
|
|
44467
|
+
continue;
|
|
44468
|
+
}
|
|
42982
44469
|
}
|
|
42983
44470
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.has(0)) {
|
|
42984
44471
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -43837,7 +45324,16 @@ var Service = class Service extends Object$1 {
|
|
|
43837
45324
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
43838
45325
|
const prop = this._cachedJsonLd["publicKey"];
|
|
43839
45326
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
43840
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45327
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45328
|
+
v = await this.#publicKey_fromJsonLd(doc, options);
|
|
45329
|
+
} catch (error) {
|
|
45330
|
+
if (!options.suppressError) throw error;
|
|
45331
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45332
|
+
property: "https://w3id.org/security#publicKey",
|
|
45333
|
+
error
|
|
45334
|
+
});
|
|
45335
|
+
return null;
|
|
45336
|
+
}
|
|
43841
45337
|
}
|
|
43842
45338
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
43843
45339
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -43878,7 +45374,17 @@ var Service = class Service extends Object$1 {
|
|
|
43878
45374
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "publicKey" in this._cachedJsonLd) {
|
|
43879
45375
|
const prop = this._cachedJsonLd["publicKey"];
|
|
43880
45376
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
43881
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45377
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
45378
|
+
v = await this.#publicKey_fromJsonLd(obj, options);
|
|
45379
|
+
} catch (error) {
|
|
45380
|
+
if (!options.suppressError) throw error;
|
|
45381
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
45382
|
+
property: "https://w3id.org/security#publicKey",
|
|
45383
|
+
index: i,
|
|
45384
|
+
error
|
|
45385
|
+
});
|
|
45386
|
+
continue;
|
|
45387
|
+
}
|
|
43882
45388
|
}
|
|
43883
45389
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.has(0)) {
|
|
43884
45390
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44002,7 +45508,16 @@ var Service = class Service extends Object$1 {
|
|
|
44002
45508
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
44003
45509
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
44004
45510
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44005
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45511
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45512
|
+
v = await this.#assertionMethod_fromJsonLd(doc, options);
|
|
45513
|
+
} catch (error) {
|
|
45514
|
+
if (!options.suppressError) throw error;
|
|
45515
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45516
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
45517
|
+
error
|
|
45518
|
+
});
|
|
45519
|
+
return null;
|
|
45520
|
+
}
|
|
44006
45521
|
}
|
|
44007
45522
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
44008
45523
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44046,7 +45561,17 @@ var Service = class Service extends Object$1 {
|
|
|
44046
45561
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "assertionMethod" in this._cachedJsonLd) {
|
|
44047
45562
|
const prop = this._cachedJsonLd["assertionMethod"];
|
|
44048
45563
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
44049
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
45564
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
45565
|
+
v = await this.#assertionMethod_fromJsonLd(obj, options);
|
|
45566
|
+
} catch (error) {
|
|
45567
|
+
if (!options.suppressError) throw error;
|
|
45568
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
45569
|
+
property: "https://w3id.org/security#assertionMethod",
|
|
45570
|
+
index: i,
|
|
45571
|
+
error
|
|
45572
|
+
});
|
|
45573
|
+
continue;
|
|
45574
|
+
}
|
|
44050
45575
|
}
|
|
44051
45576
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.has(0)) {
|
|
44052
45577
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44201,7 +45726,16 @@ var Service = class Service extends Object$1 {
|
|
|
44201
45726
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "inbox" in this._cachedJsonLd) {
|
|
44202
45727
|
const prop = this._cachedJsonLd["inbox"];
|
|
44203
45728
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44204
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45729
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45730
|
+
v = await this.#inbox_fromJsonLd(doc, options);
|
|
45731
|
+
} catch (error) {
|
|
45732
|
+
if (!options.suppressError) throw error;
|
|
45733
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45734
|
+
property: "http://www.w3.org/ns/ldp#inbox",
|
|
45735
|
+
error
|
|
45736
|
+
});
|
|
45737
|
+
return null;
|
|
45738
|
+
}
|
|
44205
45739
|
}
|
|
44206
45740
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.has(0)) {
|
|
44207
45741
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44340,7 +45874,16 @@ var Service = class Service extends Object$1 {
|
|
|
44340
45874
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "outbox" in this._cachedJsonLd) {
|
|
44341
45875
|
const prop = this._cachedJsonLd["outbox"];
|
|
44342
45876
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44343
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
45877
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
45878
|
+
v = await this.#outbox_fromJsonLd(doc, options);
|
|
45879
|
+
} catch (error) {
|
|
45880
|
+
if (!options.suppressError) throw error;
|
|
45881
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
45882
|
+
property: "https://www.w3.org/ns/activitystreams#outbox",
|
|
45883
|
+
error
|
|
45884
|
+
});
|
|
45885
|
+
return null;
|
|
45886
|
+
}
|
|
44344
45887
|
}
|
|
44345
45888
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox.has(0)) {
|
|
44346
45889
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44464,7 +46007,16 @@ var Service = class Service extends Object$1 {
|
|
|
44464
46007
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "following" in this._cachedJsonLd) {
|
|
44465
46008
|
const prop = this._cachedJsonLd["following"];
|
|
44466
46009
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44467
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46010
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46011
|
+
v = await this.#following_fromJsonLd(doc, options);
|
|
46012
|
+
} catch (error) {
|
|
46013
|
+
if (!options.suppressError) throw error;
|
|
46014
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46015
|
+
property: "https://www.w3.org/ns/activitystreams#following",
|
|
46016
|
+
error
|
|
46017
|
+
});
|
|
46018
|
+
return null;
|
|
46019
|
+
}
|
|
44468
46020
|
}
|
|
44469
46021
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.has(0)) {
|
|
44470
46022
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44591,7 +46143,16 @@ var Service = class Service extends Object$1 {
|
|
|
44591
46143
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "followers" in this._cachedJsonLd) {
|
|
44592
46144
|
const prop = this._cachedJsonLd["followers"];
|
|
44593
46145
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44594
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46146
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46147
|
+
v = await this.#followers_fromJsonLd(doc, options);
|
|
46148
|
+
} catch (error) {
|
|
46149
|
+
if (!options.suppressError) throw error;
|
|
46150
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46151
|
+
property: "https://www.w3.org/ns/activitystreams#followers",
|
|
46152
|
+
error
|
|
46153
|
+
});
|
|
46154
|
+
return null;
|
|
46155
|
+
}
|
|
44595
46156
|
}
|
|
44596
46157
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.has(0)) {
|
|
44597
46158
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44716,7 +46277,16 @@ var Service = class Service extends Object$1 {
|
|
|
44716
46277
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "liked" in this._cachedJsonLd) {
|
|
44717
46278
|
const prop = this._cachedJsonLd["liked"];
|
|
44718
46279
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44719
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46280
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46281
|
+
v = await this.#liked_fromJsonLd(doc, options);
|
|
46282
|
+
} catch (error) {
|
|
46283
|
+
if (!options.suppressError) throw error;
|
|
46284
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46285
|
+
property: "https://www.w3.org/ns/activitystreams#liked",
|
|
46286
|
+
error
|
|
46287
|
+
});
|
|
46288
|
+
return null;
|
|
46289
|
+
}
|
|
44720
46290
|
}
|
|
44721
46291
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.has(0)) {
|
|
44722
46292
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44839,7 +46409,16 @@ var Service = class Service extends Object$1 {
|
|
|
44839
46409
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featured" in this._cachedJsonLd) {
|
|
44840
46410
|
const prop = this._cachedJsonLd["featured"];
|
|
44841
46411
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44842
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46412
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46413
|
+
v = await this.#featured_fromJsonLd(doc, options);
|
|
46414
|
+
} catch (error) {
|
|
46415
|
+
if (!options.suppressError) throw error;
|
|
46416
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46417
|
+
property: "http://joinmastodon.org/ns#featured",
|
|
46418
|
+
error
|
|
46419
|
+
});
|
|
46420
|
+
return null;
|
|
46421
|
+
}
|
|
44843
46422
|
}
|
|
44844
46423
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured.has(0)) {
|
|
44845
46424
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -44962,7 +46541,16 @@ var Service = class Service extends Object$1 {
|
|
|
44962
46541
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "featuredTags" in this._cachedJsonLd) {
|
|
44963
46542
|
const prop = this._cachedJsonLd["featuredTags"];
|
|
44964
46543
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
44965
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46544
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46545
|
+
v = await this.#featuredTags_fromJsonLd(doc, options);
|
|
46546
|
+
} catch (error) {
|
|
46547
|
+
if (!options.suppressError) throw error;
|
|
46548
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46549
|
+
property: "http://joinmastodon.org/ns#featuredTags",
|
|
46550
|
+
error
|
|
46551
|
+
});
|
|
46552
|
+
return null;
|
|
46553
|
+
}
|
|
44966
46554
|
}
|
|
44967
46555
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.has(0)) {
|
|
44968
46556
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45081,7 +46669,17 @@ var Service = class Service extends Object$1 {
|
|
|
45081
46669
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "streams" in this._cachedJsonLd) {
|
|
45082
46670
|
const prop = this._cachedJsonLd["streams"];
|
|
45083
46671
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45084
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
46672
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
46673
|
+
v = await this.#stream_fromJsonLd(obj, options);
|
|
46674
|
+
} catch (error) {
|
|
46675
|
+
if (!options.suppressError) throw error;
|
|
46676
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
46677
|
+
property: "https://www.w3.org/ns/activitystreams#streams",
|
|
46678
|
+
index: i,
|
|
46679
|
+
error
|
|
46680
|
+
});
|
|
46681
|
+
continue;
|
|
46682
|
+
}
|
|
45085
46683
|
}
|
|
45086
46684
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.has(0)) {
|
|
45087
46685
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45290,7 +46888,16 @@ var Service = class Service extends Object$1 {
|
|
|
45290
46888
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "movedTo" in this._cachedJsonLd) {
|
|
45291
46889
|
const prop = this._cachedJsonLd["movedTo"];
|
|
45292
46890
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45293
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
46891
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
46892
|
+
v = await this.#successor_fromJsonLd(doc, options);
|
|
46893
|
+
} catch (error) {
|
|
46894
|
+
if (!options.suppressError) throw error;
|
|
46895
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
46896
|
+
property: "https://www.w3.org/ns/activitystreams#movedTo",
|
|
46897
|
+
error
|
|
46898
|
+
});
|
|
46899
|
+
return null;
|
|
46900
|
+
}
|
|
45294
46901
|
}
|
|
45295
46902
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.has(0)) {
|
|
45296
46903
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45459,7 +47066,16 @@ var Service = class Service extends Object$1 {
|
|
|
45459
47066
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
45460
47067
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
45461
47068
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45462
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
47069
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47070
|
+
v = await this.#alias_fromJsonLd(doc, options);
|
|
47071
|
+
} catch (error) {
|
|
47072
|
+
if (!options.suppressError) throw error;
|
|
47073
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47074
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
47075
|
+
error
|
|
47076
|
+
});
|
|
47077
|
+
return null;
|
|
47078
|
+
}
|
|
45463
47079
|
}
|
|
45464
47080
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
45465
47081
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45503,7 +47119,17 @@ var Service = class Service extends Object$1 {
|
|
|
45503
47119
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "alsoKnownAs" in this._cachedJsonLd) {
|
|
45504
47120
|
const prop = this._cachedJsonLd["alsoKnownAs"];
|
|
45505
47121
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45506
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47122
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
47123
|
+
v = await this.#alias_fromJsonLd(obj, options);
|
|
47124
|
+
} catch (error) {
|
|
47125
|
+
if (!options.suppressError) throw error;
|
|
47126
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
47127
|
+
property: "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
47128
|
+
index: i,
|
|
47129
|
+
error
|
|
47130
|
+
});
|
|
47131
|
+
continue;
|
|
47132
|
+
}
|
|
45507
47133
|
}
|
|
45508
47134
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.has(0)) {
|
|
45509
47135
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45627,7 +47253,16 @@ var Service = class Service extends Object$1 {
|
|
|
45627
47253
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
45628
47254
|
const prop = this._cachedJsonLd["service"];
|
|
45629
47255
|
const doc = Array.isArray(prop) ? prop[0] : prop;
|
|
45630
|
-
if (doc != null && typeof doc === "object" && "@context" in doc)
|
|
47256
|
+
if (doc != null && typeof doc === "object" && "@context" in doc) try {
|
|
47257
|
+
v = await this.#service_fromJsonLd(doc, options);
|
|
47258
|
+
} catch (error) {
|
|
47259
|
+
if (!options.suppressError) throw error;
|
|
47260
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property}: {error}", {
|
|
47261
|
+
property: "https://www.w3.org/ns/did#service",
|
|
47262
|
+
error
|
|
47263
|
+
});
|
|
47264
|
+
return null;
|
|
47265
|
+
}
|
|
45631
47266
|
}
|
|
45632
47267
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
45633
47268
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|
|
@@ -45671,7 +47306,17 @@ var Service = class Service extends Object$1 {
|
|
|
45671
47306
|
if (this._cachedJsonLd != null && typeof this._cachedJsonLd === "object" && "@context" in this._cachedJsonLd && "service" in this._cachedJsonLd) {
|
|
45672
47307
|
const prop = this._cachedJsonLd["service"];
|
|
45673
47308
|
const obj = Array.isArray(prop) ? prop[i] : prop;
|
|
45674
|
-
if (obj != null && typeof obj === "object" && "@context" in obj)
|
|
47309
|
+
if (obj != null && typeof obj === "object" && "@context" in obj) try {
|
|
47310
|
+
v = await this.#service_fromJsonLd(obj, options);
|
|
47311
|
+
} catch (error) {
|
|
47312
|
+
if (!options.suppressError) throw error;
|
|
47313
|
+
(0, _logtape_logtape.getLogger)(["fedify", "vocab"]).debug("Failed to parse embedded value of {property} at index {index}: {error}", {
|
|
47314
|
+
property: "https://www.w3.org/ns/did#service",
|
|
47315
|
+
index: i,
|
|
47316
|
+
error
|
|
47317
|
+
});
|
|
47318
|
+
continue;
|
|
47319
|
+
}
|
|
45675
47320
|
}
|
|
45676
47321
|
if (options.crossOrigin !== "trust" && v?.id != null && this.id != null && v.id.origin !== this.id.origin && !this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.has(0)) {
|
|
45677
47322
|
if (options.crossOrigin === "throw") throw new Error("The property object's @id (" + v.id.href + ") has a different origin than the property owner's @id (" + this.id.href + "); refusing to return the object. If you want to bypass this check and are aware of the security implications, set the crossOrigin option to \"trust\".");
|