feat: add title param to render_feed, use dynamic title in RSS adapter

This commit is contained in:
2026-05-04 20:52:07 +02:00
parent 49b79799c1
commit b5a8ea2395
4 changed files with 29 additions and 10 deletions

View File

@@ -380,7 +380,7 @@ pub mod rss {
let page = get_diary::execute(&state.app_ctx, query).await?;
let xml = state
.rss_renderer
.render_feed(&page.items)
.render_feed(&page.items, "Movie Diary")
.map_err(|e| ApiError(DomainError::InfrastructureError(e)))?;
Ok(([(header::CONTENT_TYPE, "application/rss+xml; charset=utf-8")], xml))
}