forked from Ruderverein-Donau-Linz/rowt
maybe unpublishing a post works now?
This commit is contained in:
@ -161,7 +161,11 @@ async fn blogpost_unpublished(
|
||||
config: &State<Config>,
|
||||
) -> String {
|
||||
if blogpost.pw == &config.wordpress_key {
|
||||
Notification::delete_by_link(&db, blogpost.article_url).await;
|
||||
Notification::delete_by_link(
|
||||
&db,
|
||||
&urlencoding::decode(blogpost.article_url).expect("UTF-8"),
|
||||
)
|
||||
.await;
|
||||
"ACK".into()
|
||||
} else {
|
||||
"WRONG pw".into()
|
||||
|
Reference in New Issue
Block a user