Update create.rs

This commit is contained in:
dullbananas 2024-06-11 12:22:48 -07:00 committed by GitHub
parent 5789926a6c
commit a9586583b5
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 actor_id: DbUrl = Url::parse(&context.settings().get_protocol_and_hostname())?.into();
let inbox_url = Some(generate_shared_inbox_url(context.settings())?); let inbox_url = Some(generate_shared_inbox_url(context.settings())?);
let keypair = generate_actor_keypair()?; let keypair = generate_actor_keypair()?;
@ -74,7 +73,6 @@ pub async fn create_site(
description: diesel_string_update(data.description.as_deref()), description: diesel_string_update(data.description.as_deref()),
icon: Some(icon), icon: Some(icon),
banner: Some(banner), banner: Some(banner),
actor_id: Some(actor_id),
last_refreshed_at: Some(naive_now()), last_refreshed_at: Some(naive_now()),
inbox_url, inbox_url,
private_key: Some(Some(keypair.private_key)), private_key: Some(Some(keypair.private_key)),