Fixing admin application email subject. Fixes #2688 (#2695)

disable-pictrs-ci
Dessalines 2023-02-03 09:24:19 -05:00 committed by GitHub
parent b1e121b5ba
commit ed95c61bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ pub async fn send_new_applicant_email_to_admins(
for admin in &admins {
let email = &admin.local_user.email.clone().expect("email");
let lang = get_interface_language_from_settings(admin);
let subject = lang.new_application_subject(applicant_username, &settings.hostname);
let subject = lang.new_application_subject(&settings.hostname, applicant_username);
let body = lang.new_application_body(applications_link);
send_email(&subject, email, &admin.person.name, &body, settings)?;
}