notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit 6f6309acd4d6d14bb1d42553cca3063ee90285c0
parent 939e12dc7380af1a6e3cfa639d4d989369105de2
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 24 Jan 2024 11:37:12 -0800

html: fix profile pictures

Diffstat:
Msrc/render.rs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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,