feat: impl archive user if not exists
This commit is contained in:
parent
2ebd53e612
commit
54a1d28395
1 changed files with 9 additions and 0 deletions
|
@ -73,6 +73,15 @@ impl Ctx {
|
|||
let msg = u.as_ref().into();
|
||||
db.add_user(&msg).await.unwrap();
|
||||
federate.create_user(&msg).await.unwrap();
|
||||
} else {
|
||||
if !federate
|
||||
.user_exists(username, gitea.get_hostname())
|
||||
.await
|
||||
.unwrap()
|
||||
{
|
||||
let msg = u.as_ref().into();
|
||||
federate.create_user(&msg).await.unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue