From d7051c40f81ee7d283dc3fd14144922e392a7781 Mon Sep 17 00:00:00 2001
From: Sander Saarend <sander@saarend.com>
Date: Wed, 19 Jul 2023 18:04:43 +0300
Subject: [PATCH] Use local_site.default_post_listing_type as the initial
 default listing type for new users (#3666)

---
 crates/api_crud/src/user/create.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs
index c2f42bba..caba9bd8 100644
--- a/crates/api_crud/src/user/create.rs
+++ b/crates/api_crud/src/user/create.rs
@@ -138,6 +138,7 @@ impl PerformCrud for Register {
       .password_encrypted(data.password.to_string())
       .show_nsfw(Some(data.show_nsfw))
       .accepted_application(accepted_application)
+      .default_listing_type(Some(local_site.default_post_listing_type))
       .build();
 
     let inserted_local_user = LocalUser::create(&mut context.pool(), &local_user_form).await?;
-- 
2.44.1