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

This commit is contained in:
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

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)?;
}