mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
refactor(federation): ♻️ More federation logic cleanup
This commit is contained in:
parent
83399ba5f1
commit
0ae9cfe26c
10 changed files with 124 additions and 133 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue