Unverified Commit a30ce6dc authored by Hong Minhee's avatar Hong Minhee
Browse files

Merge tag '1.0.2'

Fedify 1.0.2
parents 239afc0e f9c5052e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
.DS_Store
deno.lock
t.ts
+14 −0
Original line number Diff line number Diff line
@@ -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
-------------

+19 −12
Original line number Diff line number Diff line
@@ -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> = {};
+30 −757

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -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