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

This commit is contained in:
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

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