From: Felix Ableitner Date: Tue, 30 Aug 2022 20:36:01 +0000 (+0200) Subject: dont set default user languages in api code (already done in db) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%7BpictshareAvatarThumbnail%28admin.avatar%29%7D?a=commitdiff_plain;h=3295784ebb9e067d968a275a882591e506e61b3c;p=lemmy.git dont set default user languages in api code (already done in db) --- diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index 9fc4fe5b..3f867a9e 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -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 {