@fedify/fedify 0.8.0-dev.166 → 0.8.0-dev.167
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @fedify/fedify might be problematic. Click here for more details.
- package/CHANGES.md +5 -0
- package/esm/vocab/lookup.js +2 -1
- package/package.json +1 -1
- package/types/vocab/lookup.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -80,6 +80,11 @@ To be released.
|
|
80
80
|
- Fixed a bug where the authenticated document loader had thrown `InvalidUrl`
|
81
81
|
error when the URL redirection was involved in Bun.
|
82
82
|
|
83
|
+
- Fixed a bug of `lookupObject()` that it had failed to look up the actor
|
84
|
+
object when WebFinger response had no links with
|
85
|
+
`"type": "application/activity+json"` but had `"type":
|
86
|
+
"application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""`.
|
87
|
+
|
83
88
|
[@fedify/cli]: https://jsr.io/@fedify/cli
|
84
89
|
[releases]: https://github.com/dahlia/fedify/releases
|
85
90
|
[FEP-8fcf]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8fcf/fep-8fcf.md
|
package/esm/vocab/lookup.js
CHANGED
@@ -57,7 +57,8 @@ export async function lookupObject(identifier, options = {}) {
|
|
57
57
|
if (jrd?.links == null)
|
58
58
|
return null;
|
59
59
|
for (const l of jrd.links) {
|
60
|
-
if (l.type !== "application/activity+json"
|
60
|
+
if (l.type !== "application/activity+json" &&
|
61
|
+
!l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self")
|
61
62
|
continue;
|
62
63
|
try {
|
63
64
|
const remoteDoc = await documentLoader(l.href);
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/vocab/lookup.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,GAAG,GAAG,EACxB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,
|
1
|
+
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/vocab/lookup.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,GAAG,GAAG,EACxB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8CxB"}
|