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