From 6f6309acd4d6d14bb1d42553cca3063ee90285c0 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 24 Jan 2024 11:37:12 -0800 Subject: [PATCH] html: fix profile pictures --- src/render.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index bcf3e90..a3abfec 100644 --- a/src/render.rs +++ b/src/render.rs @@ -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,