This commit is contained in:
aprilthepink 2024-04-18 19:05:22 +02:00
parent 98732a5c06
commit b5c9c2b9e6

View file

@ -72,13 +72,14 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
let keypair = generate_actor_keypair()?; let keypair = generate_actor_keypair()?;
let user = entities::user::ActiveModel { let user = entities::user::ActiveModel {
id: Set(ap_id.into()), id: Set(ap_id.clone().into()),
username: Set(username), username: Set(username),
name: Set("Test account <3".to_string()), name: Set("Test account <3".to_string()),
inbox: Set(inbox.to_string()), inbox: Set(inbox.to_string()),
public_key: Set(keypair.public_key.clone()), public_key: Set(keypair.public_key.clone()),
private_key: Set(Some(keypair.private_key.clone())), private_key: Set(Some(keypair.private_key.clone())),
last_refreshed_at: Set(chrono::offset::Utc::now()), last_refreshed_at: Set(chrono::offset::Utc::now()),
url: Set(ap_id.to_string()),
local: Set(true), local: Set(true),
..Default::default() ..Default::default()
}; };