From e1c45d6a45a56e4d752c050f9a372139e8837e43 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 17 Mar 2024 18:23:29 +0100 Subject: [PATCH] fix --- src/pages/index.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pages/index.rs b/src/pages/index.rs index d28aafa..6b8fc9d 100644 --- a/src/pages/index.rs +++ b/src/pages/index.rs @@ -15,12 +15,7 @@ pub struct MessageForm { pub async fn message_post(r: HttpRequest, f: Form) -> impl Responder { let config: &web::Data = r.app_data().expect("get config failed"); crate::msg::save_message(&f.message, &f.msg_name.to_string()); - crate::notification::notify( - &format!("New Message from {}", f.msg_name), - "New Message", - config.clone(), - ) - .await; + crate::notification::notify(&f.message, &f.msg_name, config.clone()).await; web_base::func::redirect("/message") }