From: Dessalines Date: Fri, 3 Feb 2023 14:24:19 +0000 (-0500) Subject: Fixing admin application email subject. Fixes #2688 (#2695) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%7Biframely.url%7D?a=commitdiff_plain;h=ed95c61bcacd6c97dcf747c570822d1bfb1b0c0c;p=lemmy.git Fixing admin application email subject. Fixes #2688 (#2695) --- diff --git a/crates/api_common/src/utils.rs b/crates/api_common/src/utils.rs index bf9bbf1b..689488fe 100644 --- a/crates/api_common/src/utils.rs +++ b/crates/api_common/src/utils.rs @@ -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)?; }