diff --git a/src/main.rs b/src/main.rs index 85a846f..4ff8722 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,6 +79,8 @@ async fn main() -> actix_web::Result<(), anyhow::Error> { public_key: Set(keypair.public_key.clone()), private_key: Set(Some(keypair.private_key.clone())), last_refreshed_at: Set(chrono::offset::Utc::now()), + follower_count: Set(0), + following_count: Set(0), url: Set(ap_id.to_string()), local: Set(true), ..Default::default() diff --git a/src/objects/person.rs b/src/objects/person.rs index 261e6d8..de45198 100644 --- a/src/objects/person.rs +++ b/src/objects/person.rs @@ -129,6 +129,8 @@ impl Object for user::Model { local: Set(false), summary: Set(json.summary), url: Set(json.url.to_string()), + follower_count: Set(0), + following_count: Set(0), ..Default::default() }; let model = model.insert(_data.database_connection.as_ref()).await;