fmt
All checks were successful
CI / Check / Test (push) Successful in 15m57s

This commit is contained in:
2026-06-09 02:31:02 +02:00
parent 70b3ca0f5c
commit 05d062f4e0
3 changed files with 28 additions and 26 deletions

View File

@@ -63,8 +63,12 @@ pub async fn get_profile(
username: profile.username,
display_name: profile.display_name,
bio: profile.bio,
avatar_url: profile.avatar_path.map(|p| format!("{}/images/{}", base_url, p)),
banner_url: profile.banner_path.map(|p| format!("{}/images/{}", base_url, p)),
avatar_url: profile
.avatar_path
.map(|p| format!("{}/images/{}", base_url, p)),
banner_url: profile
.banner_path
.map(|p| format!("{}/images/{}", base_url, p)),
also_known_as: profile.also_known_as,
fields: profile
.fields
@@ -543,13 +547,8 @@ pub async fn get_user_profile_html(
.most_active_month
.clone()
.unwrap_or_else(|| "\u{2014}".to_string());
let history = profile
.history
.map(crate::mappers::users::group_by_month);
let heatmap = history
.as_deref()
.map(build_heatmap)
.unwrap_or_default();
let history = profile.history.map(crate::mappers::users::group_by_month);
let heatmap = history.as_deref().map(build_heatmap).unwrap_or_default();
let monthly_rating_rows: Vec<MonthlyRatingRow<'_>> = profile
.trends
.as_ref()