allow for article_titles

This commit is contained in:
2024-08-18 21:46:11 +02:00
parent 6171bb0f85
commit 83aa9bc84c
4 changed files with 7 additions and 2 deletions

View File

@ -121,6 +121,7 @@ fn unauthorized_error(req: &Request) -> Redirect {
#[derive(FromForm, Debug)]
struct NewBlogpostForm<'r> {
article_url: &'r str,
article_title: &'r str,
pw: &'r str,
}
@ -135,7 +136,7 @@ async fn new_blogpost(
Notification::create_for_role(
db,
&member,
&format!("auf unserer Website!"),
&urlencoding::decode(blogpost.article_title).expect("UTF-8"),
&format!("Neuer Blogpost"),
Some(blogpost.article_url),
None,