Use local_site.default_post_listing_type as the initial default listing type for new users (#3666)

fix-stop-process
Sander Saarend 2023-07-19 18:04:43 +03:00 committed by GitHub
parent 5cd4c6c586
commit d7051c40f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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?;