File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change @@ -81,7 +81,12 @@ export async function lookupObject(
81
81
const jrd = await lookupWebFinger ( identifier ) ;
82
82
if ( jrd ?. links == null ) return null ;
83
83
for ( const l of jrd . links ) {
84
- if ( l . type !== "application/activity+json" || l . rel !== "self" ) continue ;
84
+ if (
85
+ l . type !== "application/activity+json" &&
86
+ ! l . type ?. match (
87
+ / a p p l i c a t i o n \/ l d \+ j s o n ; \s * p r o f i l e = " h t t p s : \/ \/ w w w .w 3 .o r g \/ n s \/ a c t i v i t y s t r e a m s " / ,
88
+ ) || l . rel !== "self"
89
+ ) continue ;
85
90
try {
86
91
const remoteDoc = await documentLoader ( l . href ) ;
87
92
document = remoteDoc . document ;
You can’t perform that action at this time.
0 commit comments