diff --git a/web/src/page.rs b/web/src/page.rs index f3dff908..c3b6558a 100644 --- a/web/src/page.rs +++ b/web/src/page.rs @@ -68,8 +68,9 @@ pub fn UserPage() -> impl IntoView { Some(view! { "["{actor_type.as_ref().to_lowercase()}"]" } ) }; let created = object.published(); - let following = object.following().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or_default(); - let followers = object.followers().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or_default(); + let following = object.following().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); + let followers = object.followers().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); + let statuses = object.outbox().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); view! {
impl IntoView { {display_name}{actor_type_tag} - "\u{1f582}"" : "0 + {statuses}" ""\u{1f582}" {username.clone()}@{domain} - "👥"" : "{following} + {following}" ""👥" - "📢"" : "{followers} + {followers}" ""📢"
{