mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(federation): ⬆️ Refactor code to use v2.2 of federation SDK
This commit is contained in:
parent
aca837cb16
commit
ad9ed2598c
12 changed files with 73 additions and 79 deletions
|
|
@ -320,12 +320,13 @@ export const parseTextMentions = async (
|
|||
author.data.privateKey ?? "",
|
||||
author.getUri(),
|
||||
);
|
||||
const manager = new FederationRequester(
|
||||
new URL(`https://${person?.[2] ?? ""}`),
|
||||
signatureConstructor,
|
||||
);
|
||||
const manager = new FederationRequester(signatureConstructor);
|
||||
|
||||
const uri = await User.webFinger(manager, person?.[1] ?? "");
|
||||
const uri = await User.webFinger(
|
||||
manager,
|
||||
person?.[1] ?? "",
|
||||
person?.[2] ?? "",
|
||||
);
|
||||
|
||||
const user = await User.resolve(uri);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue