From: Sander Saarend Date: Tue, 20 Jun 2023 15:24:04 +0000 (+0300) Subject: Fix parameter ordering for new_report_subject string (#3210) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%24%7Bsrc%7D?a=commitdiff_plain;h=8ed3f3530e85ae8980c2cec60271ef030d13392a;p=lemmy.git Fix parameter ordering for new_report_subject string (#3210) --- diff --git a/crates/api_common/src/utils.rs b/crates/api_common/src/utils.rs index 602dd6ac..455acc18 100644 --- a/crates/api_common/src/utils.rs +++ b/crates/api_common/src/utils.rs @@ -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)?; }