Unsubscribe link in emails sent

This commit is contained in:
Alphonse Paix
2025-09-22 01:25:36 +02:00
parent 829f3e4e4f
commit 98611f18e3
13 changed files with 431 additions and 211 deletions

View File

@@ -119,7 +119,5 @@ pub async fn create_newsletter(
post_id,
post_excerpt: "",
};
let html_content = template.render().unwrap();
let text_content = template.text_version();
insert_newsletter_issue(transaction, post_title, &text_content, &html_content).await
insert_newsletter_issue(transaction, post_title, &template).await
}