mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 12:49:16 +02:00
feat(federation): ✨ Port to Versia 0.6
This commit is contained in:
parent
de69f27877
commit
fca30b4dad
62 changed files with 1614 additions and 2008 deletions
|
|
@ -28,7 +28,10 @@ export const refetchUserCommand = defineCommand(
|
|||
const spinner = ora("Refetching user").start();
|
||||
|
||||
try {
|
||||
await User.fromVersia(user.uri);
|
||||
await User.fromVersia(
|
||||
user.reference,
|
||||
user.reference.domain as string,
|
||||
);
|
||||
} catch (error) {
|
||||
spinner.fail(
|
||||
`Failed to refetch user ${chalk.gray(user.data.username)}`,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export const retrieveUser = async (
|
|||
): Promise<User | null> => {
|
||||
const { username, domain } = parseUserAddress(usernameOrHandle);
|
||||
|
||||
const instance = domain ? await Instance.resolveFromHost(domain) : null;
|
||||
const instance = domain ? await Instance.resolve(domain) : null;
|
||||
|
||||
const user = await User.fromSql(
|
||||
and(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue