]> Untitled Git - lemmy.git/commitdiff
Use local_site.default_post_listing_type as the initial default listing type for...
authorSander Saarend <sander@saarend.com>
Wed, 19 Jul 2023 15:04:43 +0000 (18:04 +0300)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 15:04:43 +0000 (11:04 -0400)
crates/api_crud/src/user/create.rs

index c2f42bba563ac780aa1990fe451f0ef8bc02360f..caba9bd8ab44c4eeaa81429e5e0315d249764c0a 100644 (file)
@@ -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?;