mirror of https://github.com/LemmyNet/lemmy.git
parent
b1e121b5ba
commit
ed95c61bca
|
@ -476,7 +476,7 @@ pub async fn send_new_applicant_email_to_admins(
|
||||||
for admin in &admins {
|
for admin in &admins {
|
||||||
let email = &admin.local_user.email.clone().expect("email");
|
let email = &admin.local_user.email.clone().expect("email");
|
||||||
let lang = get_interface_language_from_settings(admin);
|
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);
|
let body = lang.new_application_body(applications_link);
|
||||||
send_email(&subject, email, &admin.person.name, &body, settings)?;
|
send_email(&subject, email, &admin.person.name, &body, settings)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue