diff --git a/web/index.html b/web/index.html index ba24d8a9..58338d2f 100644 --- a/web/index.html +++ b/web/index.html @@ -120,9 +120,12 @@ div.border { border: 1px dashed var(--accent); } - div.border-solid { + span.border-button { border: 1px solid var(--background-dim); } + span.border-button:hover { + background-color: var(--background-dim); + } div.inline { display: inline; } diff --git a/web/src/components/object.rs b/web/src/components/object.rs index 45b4d271..5c4db43f 100644 --- a/web/src/components/object.rs +++ b/web/src/components/object.rs @@ -134,14 +134,14 @@ pub fn Object(object: crate::Object) -> impl IntoView { let audience_badge = object.audience().id().str() .map(|x| view! { -
- ~ - - + + + & + {Uri::pretty(&x)} - - -
+ + + }); let post_inner = view! { diff --git a/web/src/config.rs b/web/src/config.rs index 41d96e9e..817be604 100644 --- a/web/src/config.rs +++ b/web/src/config.rs @@ -60,15 +60,18 @@ impl FiltersConfig { }; let mut reply_filter = true; - if - item.in_reply_to().id().is_ok() || - item.object().get().map(|x| - x.in_reply_to().id().is_ok() - ).unwrap_or(false) - { + if let Ok(obj_id) = item.object().id() { + if let Some(obj) = crate::CACHE.get(obj_id) { + if obj.in_reply_to().id().is_ok() { + reply_filter = self.replies; + } + } + } + + if item.in_reply_to().id().is_ok() { reply_filter = self.replies; - }; - + } + type_filter && reply_filter } }