From 9efdc36042a5174c71fa45786f0a4b51bcad42d3 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 14 May 2024 19:05:30 +0200 Subject: [PATCH] fix(web): enable litepub feature to show reacts also include them in likes filter --- web/Cargo.toml | 2 +- web/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/Cargo.toml b/web/Cargo.toml index 39e9f20b..db71b72a 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -26,7 +26,7 @@ leptos = { version = "0.6", features = ["csr", "tracing"] } leptos_router = { version = "0.6", features = ["csr"] } leptos-use = { version = "0.10", features = ["serde"] } reqwest = { version = "0.12", features = ["json"] } -apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters"] } +apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters", "litepub"] } futures = "0.3.30" lazy_static = "1.4" chrono = { version = "0.4", features = ["serde"] } diff --git a/web/src/config.rs b/web/src/config.rs index 5015e0e6..9153d381 100644 --- a/web/src/config.rs +++ b/web/src/config.rs @@ -35,7 +35,7 @@ impl FiltersConfig { pub fn visible(&self, object_type: apb::ObjectType) -> bool { match object_type { apb::ObjectType::Note | apb::ObjectType::Document(_) => self.orphans, - apb::ObjectType::Activity(apb::ActivityType::Like) => self.likes, + apb::ObjectType::Activity(apb::ActivityType::Like | apb::ActivityType::EmojiReact) => self.likes, apb::ObjectType::Activity(apb::ActivityType::Create) => self.creates, apb::ObjectType::Activity(apb::ActivityType::Announce) => self.announces, apb::ObjectType::Activity(