Loading .gitignore +1 −0 Original line number Diff line number Diff line .DS_Store deno.lock t.ts CHANGES.md +14 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,20 @@ Version 1.1.0 To be released. Version 1.0.2 ------------- Released on September 27, 2024. - Fixed a bug of `Object.toJsonLd()` method where it had incorrectly compacted the `name` property when it was not a language map. - The `Delete(Application)` activities sent by the `fedify inbox` command now embed the entire actor object instead of just the actor's URI so that the peers can verify the actor's signature without fetching the actor object. Version 1.0.1 ------------- Loading cli/inbox.tsx +19 −12 Original line number Diff line number Diff line Loading @@ -194,18 +194,25 @@ async function acceptsFollowFrom(actor: Actor): Promise<boolean> { const peers: Record<string, Actor> = {}; async function sendDeleteToPeers(server: TemporaryServer): Promise<void> { const ctx = federation.createContext(server.url, -1); const actorId = ctx.getActorUri("i"); const ctx = federation.createContext(new Request(server.url), -1); const actor = (await ctx.getActor("i"))!; try { await ctx.sendActivity( { identifier: "i" }, Object.values(peers), new Delete({ id: new URL(`#delete`, actorId), actor: actorId, id: new URL(`#delete`, actor.id!), actor: actor.id!, to: PUBLIC_COLLECTION, object: actorId, object: actor, }), ); } catch (error) { logger.error( "Failed to send Delete(Application) activities to peers:\n{error}", { error }, ); } } const followers: Record<string, Actor> = {}; Loading src/codegen/__snapshots__/class.test.ts.snap +30 −757 File changed.Preview size limit exceeded, changes collapsed. Show changes src/federation/handler.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -733,9 +733,9 @@ test("handleCollection()", async () => { "application/activity+json", ); const createCtx = [ "https://w3id.org/identity/v1", "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1", "https://w3id.org/identity/v1", { toot: "http://joinmastodon.org/ns#", misskey: "https://misskey-hub.net/ns#", Loading Loading
CHANGES.md +14 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,20 @@ Version 1.1.0 To be released. Version 1.0.2 ------------- Released on September 27, 2024. - Fixed a bug of `Object.toJsonLd()` method where it had incorrectly compacted the `name` property when it was not a language map. - The `Delete(Application)` activities sent by the `fedify inbox` command now embed the entire actor object instead of just the actor's URI so that the peers can verify the actor's signature without fetching the actor object. Version 1.0.1 ------------- Loading
cli/inbox.tsx +19 −12 Original line number Diff line number Diff line Loading @@ -194,18 +194,25 @@ async function acceptsFollowFrom(actor: Actor): Promise<boolean> { const peers: Record<string, Actor> = {}; async function sendDeleteToPeers(server: TemporaryServer): Promise<void> { const ctx = federation.createContext(server.url, -1); const actorId = ctx.getActorUri("i"); const ctx = federation.createContext(new Request(server.url), -1); const actor = (await ctx.getActor("i"))!; try { await ctx.sendActivity( { identifier: "i" }, Object.values(peers), new Delete({ id: new URL(`#delete`, actorId), actor: actorId, id: new URL(`#delete`, actor.id!), actor: actor.id!, to: PUBLIC_COLLECTION, object: actorId, object: actor, }), ); } catch (error) { logger.error( "Failed to send Delete(Application) activities to peers:\n{error}", { error }, ); } } const followers: Record<string, Actor> = {}; Loading
src/codegen/__snapshots__/class.test.ts.snap +30 −757 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/federation/handler.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -733,9 +733,9 @@ test("handleCollection()", async () => { "application/activity+json", ); const createCtx = [ "https://w3id.org/identity/v1", "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1", "https://w3id.org/identity/v1", { toot: "http://joinmastodon.org/ns#", misskey: "https://misskey-hub.net/ns#", Loading