Pfp integration to side panel

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-05-26 22:05:45 -04:00
committed by William Casarin
parent 7ebd694f11
commit df0377cb89
5 changed files with 109 additions and 30 deletions

View File

@@ -156,7 +156,7 @@ pub fn get_display_name<'a>(profile: &'a ProfileRecord<'a>) -> DisplayName<'a> {
}
}
fn get_profile_url<'a>(profile: &'a ProfileRecord<'a>) -> &'a str {
pub fn get_profile_url<'a>(profile: &'a ProfileRecord<'a>) -> &'a str {
if let Some(url) = profile.record().profile().and_then(|p| p.picture()) {
url
} else {