Update create.rs

This commit is contained in:
dullbananas 2024-06-11 12:36:47 -07:00 committed by GitHub
parent 4b7a9656ee
commit b360342856
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,6 @@ pub async fn create_site(
validate_create_payload(&local_site, &data)?; validate_create_payload(&local_site, &data)?;
let inbox_url = Some(generate_shared_inbox_url(context.settings())?);
let keypair = generate_actor_keypair()?; let keypair = generate_actor_keypair()?;
let slur_regex = local_site_to_slur_regex(&local_site); let slur_regex = local_site_to_slur_regex(&local_site);
@ -74,7 +73,6 @@ pub async fn create_site(
icon: Some(icon), icon: Some(icon),
banner: Some(banner), banner: Some(banner),
last_refreshed_at: Some(naive_now()), last_refreshed_at: Some(naive_now()),
inbox_url,
private_key: Some(Some(keypair.private_key)), private_key: Some(Some(keypair.private_key)),
public_key: Some(keypair.public_key), public_key: Some(keypair.public_key),
content_warning: diesel_string_update(data.content_warning.as_deref()), content_warning: diesel_string_update(data.content_warning.as_deref()),