Skip to content

Commit

Permalink
bumbed fedify to 0.15.0-dev.375
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Sep 10, 2024
1 parent cfc0a7e commit e264b5c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"wiremock-captain": "3.3.1"
},
"dependencies": {
"@fedify/fedify": "0.13.0-dev.318",
"@fedify/fedify": "0.15.0-dev.375",
"@hono/node-server": "1.11.1",
"@js-temporal/polyfill": "0.4.4",
"@sentry/node": "8.13.0",
Expand Down
2 changes: 1 addition & 1 deletion src/dispatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function convertJsonLdToRecipient(result: any): Recipient {
}

export async function followersDispatcher(
ctx: RequestContext<ContextData>,
ctx: Context<ContextData>,
handle: string,
) {
console.log('Followers Dispatcher');
Expand Down
7 changes: 3 additions & 4 deletions src/lookup-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {
isActor,
lookupObject,
Actor,
RequestContext,
Context,
Object as APObject,
} from '@fedify/fedify';
import { ContextData } from './app';

export async function lookupActor(ctx: RequestContext<ContextData>, url: string): Promise<Actor | null> {
export async function lookupActor(ctx: Context<ContextData>, url: string): Promise<Actor | null> {
try {
console.log('Looking up actor locally', url);
const local = await ctx.data.globaldb.get([url]);
Expand All @@ -22,7 +21,7 @@ export async function lookupActor(ctx: RequestContext<ContextData>, url: string)
console.log('Looking up actor remotely', url);
const documentLoader = await ctx.getDocumentLoader({handle: 'index'});
try {
const remote = await lookupObject(url, {documentLoader});
const remote = await ctx.lookupObject(url, {documentLoader});
if (isActor(remote)) {
await ctx.data.globaldb.set([url], await remote.toJsonLd());
return remote;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@
resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d"
integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==

"@fedify/fedify@0.13.0-dev.318":
version "0.13.0-dev.318"
resolved "https://registry.yarnpkg.com/@fedify/fedify/-/fedify-0.13.0-dev.318.tgz#96146859d01888cb163908049bdb4d928ade0938"
integrity sha512-xzT3iz5IA9/9Wj30X+o0t0INDeLzn/7dq75nw5u966myzT0Ejq5L//fKNmVB04rFE6vx0+DWmZtpdxOL26YoNw==
"@fedify/fedify@0.15.0-dev.375":
version "0.15.0-dev.375"
resolved "https://registry.yarnpkg.com/@fedify/fedify/-/fedify-0.15.0-dev.375.tgz#6867611f571143f67f609170e18f63f008c0e26b"
integrity sha512-VoY7PzKBjpPxM24/bD/vA2YXqv+dIiD18nTpY4IiYV3R7c27C0Js5Bc7hYNKBoe2QDygHH2q0sTH0/zL2U7uXg==
dependencies:
"@deno/shim-crypto" "~0.3.1"
"@deno/shim-deno" "~0.18.0"
Expand Down

0 comments on commit e264b5c

Please sign in to comment.