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 authored and Nutomic committed Jul 21, 2023
1 parent a7fe0f3 commit 17ed0e8
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 @@ -140,6 +140,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(context.pool(), &local_user_form).await?;
Expand Down

0 comments on commit 17ed0e8

Please sign in to comment.