projects
/
lemmy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cd4c6c
)
Use local_site.default_post_listing_type as the initial default listing type for...
author
Sander Saarend
<sander@saarend.com>
Wed, 19 Jul 2023 15:04:43 +0000
(18:04 +0300)
committer
GitHub
<noreply@github.com>
Wed, 19 Jul 2023 15:04:43 +0000
(11:04 -0400)
crates/api_crud/src/user/create.rs
patch
|
blob
|
history
diff --git
a/crates/api_crud/src/user/create.rs
b/crates/api_crud/src/user/create.rs
index c2f42bba563ac780aa1990fe451f0ef8bc02360f..caba9bd8ab44c4eeaa81429e5e0315d249764c0a 100644
(file)
--- a/
crates/api_crud/src/user/create.rs
+++ b/
crates/api_crud/src/user/create.rs
@@
-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?;