@@ -150,7 +150,9 @@ app.patch(
150150 const fmtOpts = {
151151 url : fedCtx . url ,
152152 contextLoader : fedCtx . contextLoader ,
153- documentLoader : await fedCtx . getDocumentLoader ( owner ) ,
153+ documentLoader : await fedCtx . getDocumentLoader ( {
154+ username : account . handle ,
155+ } ) ,
154156 } ;
155157 const fields = Object . entries ( owner . fields ) ;
156158 const fieldHtmls : [ string , string ] [ ] = [ ] ;
@@ -319,7 +321,9 @@ app.get(
319321 ? fedCtx
320322 : {
321323 contextLoader : fedCtx . contextLoader ,
322- documentLoader : await fedCtx . getDocumentLoader ( owner ) ,
324+ documentLoader : await fedCtx . getDocumentLoader ( {
325+ username : owner . handle ,
326+ } ) ,
323327 } ;
324328 const actor = await lookupObject ( acct , options ) ;
325329 if ( ! isActor ( actor ) ) return c . json ( { error : "Record not found" } , 404 ) ;
@@ -386,7 +390,9 @@ app.get(
386390 const fedCtx = federation . createContext ( c . req . raw , undefined ) ;
387391 const options = {
388392 contextLoader : fedCtx . contextLoader ,
389- documentLoader : await fedCtx . getDocumentLoader ( exactMatch ) ,
393+ documentLoader : await fedCtx . getDocumentLoader ( {
394+ username : exactMatch . handle ,
395+ } ) ,
390396 } ;
391397 const actor = await lookupObject ( query . q , options ) ;
392398 if ( isActor ( actor ) ) await persistAccount ( db , actor , options ) ;
0 commit comments