feat(federation): Port to Versia 0.6

This commit is contained in:
Jesse Wierzbinski 2026-02-25 02:34:27 +01:00
parent de69f27877
commit fca30b4dad
No known key found for this signature in database
62 changed files with 1614 additions and 2008 deletions

View file

@ -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)}`,

View file

@ -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(