mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): ♻️ Use URL literal instead of strings
This commit is contained in:
parent
99fac323c8
commit
76d1ccc859
50 changed files with 343 additions and 256 deletions
|
|
@ -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}`),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue