From a614f7c35bc82c734325f549207e5923357b3bdf Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 29 Jun 2024 04:32:55 +0200 Subject: [PATCH] fix(web): don't show activities in threads --- web/src/components/activity.rs | 3 ++- web/src/timeline/thread.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/components/activity.rs b/web/src/components/activity.rs index 9cb3cbb6..0bede376 100644 --- a/web/src/components/activity.rs +++ b/web/src/components/activity.rs @@ -43,6 +43,7 @@ pub fn Item( item: crate::Object, #[prop(optional)] sep: bool, #[prop(optional)] replies: bool, + #[prop(optional)] slim: bool, ) -> impl IntoView { let config = use_context::>().expect("missing config context"); let id = item.id().unwrap_or_default().to_string(); @@ -75,7 +76,7 @@ pub fn Item( _ => None, }; Some(view! { - + {if !slim { Some(view! { }) } else { None }} {object} {sep.clone()} }.into_view()) diff --git a/web/src/timeline/thread.rs b/web/src/timeline/thread.rs index cea0177d..723ab614 100644 --- a/web/src/timeline/thread.rs +++ b/web/src/timeline/thread.rs @@ -64,7 +64,7 @@ fn FeedRecursive(tl: Timeline, root: String) -> impl IntoView { children=move |(id, obj)| view! {
- +