From 02e22ae9fd8678d1c68fcb796f38a61f4812896c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 13 Sep 2024 14:51:58 +0200 Subject: [PATCH] fix --- crates/api_crud/src/community/create.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_crud/src/community/create.rs b/crates/api_crud/src/community/create.rs index 332f0e21b..7052ba8f0 100644 --- a/crates/api_crud/src/community/create.rs +++ b/crates/api_crud/src/community/create.rs @@ -94,14 +94,14 @@ pub async fn create_community( site_view.site.instance_id, data.name.clone(), data.title.clone(), - keypair.private_key, + keypair.public_key, ); community_form.description = description; community_form.icon = icon; community_form.banner = banner; community_form.nsfw = data.nsfw; community_form.actor_id = Some(community_actor_id.clone()); - community_form.public_key = keypair.public_key; + community_form.private_key = Some(keypair.private_key); community_form.followers_url = Some(generate_followers_url(&community_actor_id)?); community_form.inbox_url = Some(generate_inbox_url(&community_actor_id)?); community_form.shared_inbox_url = Some(generate_shared_inbox_url(context.settings())?);