1
0
Fork 0
forked from alemi/upub

fix(web): object.object.id damn its late

This commit is contained in:
əlemi 2024-04-22 04:49:24 +02:00
parent 64774b976d
commit b543610ed3

View file

@ -69,7 +69,7 @@ pub fn TimelineRepliesRecursive(tl: Timeline, root: String) -> impl IntoView {
children=move |object: serde_json::Value| { children=move |object: serde_json::Value| {
match object.object_type() { match object.object_type() {
Some(apb::ObjectType::Activity(apb::ActivityType::Create)) => { Some(apb::ObjectType::Activity(apb::ActivityType::Create)) => {
let oid = object.id().unwrap_or_default().to_string(); let oid = object.object().id().unwrap_or_default().to_string();
if let Some(note) = CACHE.get(&oid) { if let Some(note) = CACHE.get(&oid) {
view! { view! {
<ActivityLine activity=object /> <ActivityLine activity=object />