forked from alemi/upub
fix(web): don't show activities in threads
This commit is contained in:
parent
9f6acebb85
commit
a614f7c35b
2 changed files with 3 additions and 2 deletions
|
@ -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::<Signal<crate::Config>>().expect("missing config context");
|
||||
let id = item.id().unwrap_or_default().to_string();
|
||||
|
@ -75,7 +76,7 @@ pub fn Item(
|
|||
_ => None,
|
||||
};
|
||||
Some(view! {
|
||||
<ActivityLine activity=item.clone() />
|
||||
{if !slim { Some(view! { <ActivityLine activity=item.clone() /> }) } else { None }}
|
||||
{object}
|
||||
{sep.clone()}
|
||||
}.into_view())
|
||||
|
|
|
@ -64,7 +64,7 @@ fn FeedRecursive(tl: Timeline, root: String) -> impl IntoView {
|
|||
children=move |(id, obj)|
|
||||
view! {
|
||||
<div class="context depth-r">
|
||||
<Item item=obj replies=true />
|
||||
<Item item=obj replies=true slim=true />
|
||||
<div class="depth-r">
|
||||
<FeedRecursive tl=tl root=id />
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue