diff --git a/web/src/components/timeline.rs b/web/src/components/timeline.rs index 20161430..19a91540 100644 --- a/web/src/components/timeline.rs +++ b/web/src/components/timeline.rs @@ -145,11 +145,19 @@ pub fn TimelineFeed(tl: Timeline) -> impl IntoView {
}.into_view(), // everything else - Some(apb::ObjectType::Activity(_)) => { + Some(apb::ObjectType::Activity(t)) => { let object_id = item.object().id().unwrap_or_default(); - let object = CACHE.get(&object_id).map(|obj| { - view! { } - }); + let object = match t { + apb::ActivityType::Create | apb::ActivityType::Announce => + CACHE.get(&object_id).map(|obj| { + view! { } + }.into_view()), + apb::ActivityType::Follow => + CACHE.get(&object_id).map(|obj| { + view! {
} + }.into_view()), + _ => None, + }; view! { {object}