From 004243dcbb85d25a868d9dca91e85348a224a78f Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 3 Jun 2026 10:17:43 +0200 Subject: [PATCH] fix: use embed=true for serde bool compat --- crates/adapters/template-askama/src/lib.rs | 2 +- .../adapters/template-askama/templates/embed_profile.html | 8 ++++---- crates/presentation/src/handlers/html.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/adapters/template-askama/src/lib.rs b/crates/adapters/template-askama/src/lib.rs index 1782a33..62151a6 100644 --- a/crates/adapters/template-askama/src/lib.rs +++ b/crates/adapters/template-askama/src/lib.rs @@ -258,7 +258,7 @@ impl<'a> EmbedProfileTemplate<'a> { let parts = [ format!("view={}", self.view), format!("sort_by={}", self.sort_by), - "embed=1".to_string(), + "embed=true".to_string(), ]; format!("&{}", parts.join("&")) } diff --git a/crates/adapters/template-askama/templates/embed_profile.html b/crates/adapters/template-askama/templates/embed_profile.html index 9f28404..de8dfdd 100644 --- a/crates/adapters/template-askama/templates/embed_profile.html +++ b/crates/adapters/template-askama/templates/embed_profile.html @@ -25,10 +25,10 @@
- Recent - Top Rated - History - Trends + Recent + Top Rated + History + Trends
{% if view == "recent" || view == "ratings" %} diff --git a/crates/presentation/src/handlers/html.rs b/crates/presentation/src/handlers/html.rs index 56bb640..fbc5cde 100644 --- a/crates/presentation/src/handlers/html.rs +++ b/crates/presentation/src/handlers/html.rs @@ -1253,7 +1253,7 @@ pub async fn get_profile_settings( profile_fields: &profile_fields, saved, embed_url: format!( - "{}/users/{}?embed=1", + "{}/users/{}?embed=true", state.app_ctx.config.base_url, user_id.value() ),