html: fix profile pictures

This commit is contained in:
William Casarin 2024-01-24 11:37:12 -08:00
parent 939e12dc73
commit 6f6309acd4
1 changed files with 4 additions and 1 deletions

View File

@ -196,7 +196,10 @@ fn get_profile_render_data(
let about = profile.about().unwrap_or("").to_string();
let display_name = profile.display_name().as_ref().map(|a| a.to_string());
let pfp = app.default_pfp.clone();
let pfp_url = "https://damus.io/img/no-profile.svg".to_owned();
let pfp_url = profile
.picture()
.unwrap_or("https://damus.io/img/no-profile.svg")
.to_string();
Ok(ProfileRenderData {
name,