diff --git a/src/spider.rs b/src/spider.rs index b2536ce..fd28b8e 100644 --- a/src/spider.rs +++ b/src/spider.rs @@ -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(); + } } }