From 535fc746a4f1a00e733e07d7e4a92513e74e3202 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 30 Jul 2024 10:29:29 +0200 Subject: [PATCH] Fix admin notification for new user registration (fixes #4916) --- crates/api/src/local_user/verify_email.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/api/src/local_user/verify_email.rs b/crates/api/src/local_user/verify_email.rs index 5f38ffc12f..7293a4eea2 100644 --- a/crates/api/src/local_user/verify_email.rs +++ b/crates/api/src/local_user/verify_email.rs @@ -41,9 +41,7 @@ pub async fn verify_email( EmailVerification::delete_old_tokens_for_local_user(&mut context.pool(), local_user_id).await?; // send out notification about registration application to admins if enabled - if site_view.local_site.registration_mode == RegistrationMode::RequireApplication - && site_view.local_site.application_email_admins - { + if site_view.local_site.application_email_admins { let local_user = LocalUserView::read(&mut context.pool(), local_user_id) .await? .ok_or(LemmyErrorType::CouldntFindPerson)?;