]> Untitled Git - lemmy.git/commitdiff
Fixing admin application email subject. Fixes #2688 (#2695)
authorDessalines <dessalines@users.noreply.github.com>
Fri, 3 Feb 2023 14:24:19 +0000 (09:24 -0500)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 14:24:19 +0000 (09:24 -0500)
crates/api_common/src/utils.rs

index bf9bbf1b01a7d707c89bd6eafcf2baae2f976585..689488feba61abd64f9db0fe424c9aa6a411dbdc 100644 (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)?;
   }