From 6b44f9b0845d96008767dacb02d21a33576e044d Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 30 Apr 2024 04:31:17 +0200 Subject: [PATCH] fix(web): followers/following/statuses counts --- web/src/page.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/page.rs b/web/src/page.rs index 48699401..03940f55 100644 --- a/web/src/page.rs +++ b/web/src/page.rs @@ -81,9 +81,9 @@ pub fn UserPage(tl: Timeline) -> 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(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); + let following = object.generator().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); + let followers = object.audience().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); + let statuses = object.replies().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0); let tl_url = format!("{}/outbox/page", Uri::api(FetchKind::User, &id.clone(), false)); if !tl.next.get().starts_with(&tl_url) { tl.reset(tl_url);