Unverified Commit 4175745c authored by Hong Minhee's avatar Hong Minhee
Browse files

getActorHandle() function

parent 37322d4f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ To be released.
     -  Added `integrateHandler()` function.
     -  Added `integrateHandlerOptions()` function.

 -  Added `getActorHandle()` function.

 -  Now `loookupWebFinger()` follows redirections.

[Fresh]: https://fresh.deno.dev/
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
    "fast-check": "npm:fast-check@^3.16.0",
    "jose": "npm:jose@^5.2.3",
    "jsonld": "npm:jsonld@^8.3.2",
    "mock_fetch": "https://deno.land/x/mock_fetch@0.3.0/mod.ts",
    "uri-template-router": "npm:uri-template-router@^0.0.16",
    "url-template": "npm:url-template@^3.1.1"
  },
+2 −2
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ import {
  Create,
  Endpoints,
  Follow,
  getActorHandle,
  getActorTypeName,
  isActor,
  Link,
@@ -151,8 +152,7 @@ federation.setInboxListeners("/users/{handle}/inbox", "/inbox")
      recipient.preferredUsername == null ||
      recipient.inboxId == null
    ) return;
    const handle =
      `@${recipient.preferredUsername.toString()}@${recipient.id.host}`;
    const handle = await getActorHandle(recipient);
    await addFollower({
      activityId: follow.id.href,
      id: recipient.id.href,
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
    "fast-check": "npm:fast-check@^3.16.0",
    "jose": "npm:jose@^5.2.3",
    "jsonld": "npm:jsonld@^8.3.2",
    "mock_fetch": "https://deno.land/x/mock_fetch@0.3.0/mod.ts",
    "uri-template-router": "npm:uri-template-router@^0.0.16",
    "url-template": "npm:url-template@^3.1.1",
    "$fresh/": "https://deno.land/x/fresh@1.6.5/",
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import {
  assertRejects,
  assertStrictEquals,
} from "@std/assert";
import * as mf from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";
import * as mf from "mock_fetch";
import { doesActorOwnKey, verify } from "../httpsig/mod.ts";
import { mockDocumentLoader } from "../testing/docloader.ts";
import { privateKey2, publicKey2 } from "../testing/keys.ts";
Loading