refactor(federation): ♻️ More federation logic cleanup

This commit is contained in:
Jesse Wierzbinski 2024-12-09 15:01:19 +01:00
parent 83399ba5f1
commit 0ae9cfe26c
No known key found for this signature in database
10 changed files with 124 additions and 133 deletions

View file

@ -49,6 +49,12 @@ export default class FederationUserFetch extends BaseCommand<
const uri = await User.webFinger(manager, username, host);
if (!uri) {
spinner.fail();
this.log(chalk.red("User not found"));
this.exit(1);
}
const newUser = await User.resolve(uri);
if (newUser) {