Skip to content

Commit

Permalink
Fix admin notification for new user registration (fixes #4916)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Jul 30, 2024
1 parent 7321a63 commit 535fc74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/api/src/local_user/verify_email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 535fc74

Please sign in to comment.