Skip to content

Commit

Permalink
Use local_site.default_post_listing_type as the initial default listi…
Browse files Browse the repository at this point in the history
…ng type for new users (#3666)
  • Loading branch information
sunaurus committed Jul 19, 2023
1 parent 5cd4c6c commit d7051c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/api_crud/src/user/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit d7051c4

Please sign in to comment.