refactor(api): ♻️ Use URL literal instead of strings

This commit is contained in:
Jesse Wierzbinski 2025-02-01 16:32:18 +01:00
parent 99fac323c8
commit 76d1ccc859
No known key found for this signature in database
50 changed files with 343 additions and 256 deletions

View file

@ -101,7 +101,7 @@ export abstract class UserFinderCommand<
// Check instance exists, if not, create it
await Instance.resolve(
`https://${parseUserAddress(identifier).domain}`,
new URL(`https://${parseUserAddress(identifier).domain}`),
);
}

View file

@ -43,7 +43,7 @@ export default class FederationUserFetch extends BaseCommand<
}
// Check instance exists, if not, create it
await Instance.resolve(`https://${host}`);
await Instance.resolve(new URL(`https://${host}`));
const manager = await User.getFederationRequester();

View file

@ -44,7 +44,7 @@ export default class FederationUserFinger extends BaseCommand<
}
// Check instance exists, if not, create it
await Instance.resolve(`https://${host}`);
await Instance.resolve(new URL(`https://${host}`));
const manager = await User.getFederationRequester();