]> Untitled Git - lemmy.git/commitdiff
dont set default user languages in api code (already done in db)
authorFelix Ableitner <me@nutomic.com>
Tue, 30 Aug 2022 20:36:01 +0000 (22:36 +0200)
committerDessalines <dessalines@users.noreply.github.com>
Fri, 2 Sep 2022 14:49:54 +0000 (10:49 -0400)
crates/api_crud/src/user/create.rs

index 9fc4fe5b111c3cc86b42d1f1fd9c8996a1363617..3f867a9e4cac5fdc2309ec839d0302715d6026ea 100644 (file)
@@ -168,13 +168,6 @@ impl PerformCrud for Register {
       }
     };
 
-    // Update the users languages to all by default
-    let local_user_id = inserted_local_user.id;
-    blocking(context.pool(), move |conn| {
-      LocalUserLanguage::update_user_languages(conn, None, local_user_id)
-    })
-    .await??;
-
     if require_application {
       // Create the registration application
       let form = RegistrationApplicationForm {