mirror of https://github.com/LemmyNet/lemmy.git
Use local_site.default_post_listing_type as the initial default listing type for new users (#3666)
parent
5cd4c6c586
commit
d7051c40f8
|
@ -138,6 +138,7 @@ impl PerformCrud for Register {
|
||||||
.password_encrypted(data.password.to_string())
|
.password_encrypted(data.password.to_string())
|
||||||
.show_nsfw(Some(data.show_nsfw))
|
.show_nsfw(Some(data.show_nsfw))
|
||||||
.accepted_application(accepted_application)
|
.accepted_application(accepted_application)
|
||||||
|
.default_listing_type(Some(local_site.default_post_listing_type))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let inserted_local_user = LocalUser::create(&mut context.pool(), &local_user_form).await?;
|
let inserted_local_user = LocalUser::create(&mut context.pool(), &local_user_form).await?;
|
||||||
|
|
Loading…
Reference in New Issue