This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user