From 9c47a15ca637bb7d23c3d16bc3a2080c39076bf4 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jul 2024 06:02:39 +0200 Subject: [PATCH] feat(web): allow hiding deletes (default on) --- web/src/config.rs | 4 ++++ web/src/page/config.rs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/config.rs b/web/src/config.rs index c87ce442..e460e8d8 100644 --- a/web/src/config.rs +++ b/web/src/config.rs @@ -33,6 +33,9 @@ pub struct FiltersConfig { #[serde_inline_default(true)] pub announces: bool, + #[serde_inline_default(false)] + pub deletes: bool, + #[serde_inline_default(true)] pub follows: bool, @@ -54,6 +57,7 @@ impl FiltersConfig { apb::ObjectType::Activity(apb::ActivityType::Create) => self.creates, apb::ObjectType::Activity(apb::ActivityType::Announce) => self.announces, apb::ObjectType::Activity(apb::ActivityType::Update) => self.updates, + apb::ObjectType::Activity(apb::ActivityType::Delete) => self.deletes, apb::ObjectType::Activity( apb::ActivityType::Follow | apb::ActivityType::Accept(_) | apb::ActivityType::Reject(_) ) => self.follows, diff --git a/web/src/page/config.rs b/web/src/page/config.rs index 4e01142f..272121c5 100644 --- a/web/src/page/config.rs +++ b/web/src/page/config.rs @@ -101,9 +101,10 @@ pub fn ConfigPage(setter: WriteSignal) -> impl IntoView {
  • " likes"
  • " creates"
  • " updates"
  • +
  • " deletes"
  • " announces"
  • " follows"
  • -
  • " orphans"
  • +
  • " fetched"