]> Untitled Git - lemmy.git/commitdiff
Fix parameter ordering for new_report_subject string (#3210)
authorSander Saarend <sander@saarend.com>
Tue, 20 Jun 2023 15:24:04 +0000 (18:24 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2023 15:24:04 +0000 (11:24 -0400)
crates/api_common/src/utils.rs

index 602dd6acc5663b025c54244944286d436a708cfd..455acc1821085a570f1b2bd47b874d334f9b37ca 100644 (file)
@@ -500,7 +500,7 @@ pub async fn send_new_report_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_report_subject(&settings.hostname, reporter_username, reported_username);
+    let subject = lang.new_report_subject(&settings.hostname, reported_username, reporter_username);
     let body = lang.new_report_body(reports_link);
     send_email(&subject, email, &admin.person.name, &body, settings)?;
   }