Skip to content

Commit

Permalink
Merge tag '1.0.2'
Browse files Browse the repository at this point in the history
Fedify 1.0.2
  • Loading branch information
dahlia committed Sep 27, 2024
2 parents 239afc0 + f9c5052 commit a30ce6d
Show file tree
Hide file tree
Showing 36 changed files with 97 additions and 802 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
deno.lock
t.ts
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------

Expand Down
31 changes: 19 additions & 12 deletions cli/inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
await ctx.sendActivity(
{ identifier: "i" },
Object.values(peers),
new Delete({
id: new URL(`#delete`, actorId),
actor: actorId,
to: PUBLIC_COLLECTION,
object: actorId,
}),
);
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`, actor.id!),
actor: actor.id!,
to: PUBLIC_COLLECTION,
object: actor,
}),
);
} catch (error) {
logger.error(
"Failed to send Delete(Application) activities to peers:\n{error}",
{ error },
);
}
}

const followers: Record<string, Actor> = {};
Expand Down
Loading

0 comments on commit a30ce6d

Please sign in to comment.