]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/user/create.rs
Add show_new_posts_notifs setting. Fixes #1664 (#1665)
[lemmy.git] / crates / api_crud / src / user / create.rs
index ec227fefaa73a5b0f4e7b9b0ab09f00318a18d7d..82788b6dad4384da7a6e5cb64818674ec0f03e70 100644 (file)
@@ -118,6 +118,7 @@ impl PerformCrud for Register {
     .map_err(|_| ApiError::err("user_already_exists"))?;
 
     // Create the local user
+    // TODO some of these could probably use the DB defaults
     let local_user_form = LocalUserForm {
       person_id: inserted_person.id,
       email: Some(data.email.to_owned()),
@@ -131,6 +132,7 @@ impl PerformCrud for Register {
       show_avatars: Some(true),
       show_scores: Some(true),
       show_read_posts: Some(true),
+      show_new_post_notifs: Some(false),
       send_notifications_to_email: Some(false),
     };