forked from alemi/upub
fix(web): enable litepub feature to show reacts
also include them in likes filter
This commit is contained in:
parent
1954b3f8e4
commit
9efdc36042
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ leptos = { version = "0.6", features = ["csr", "tracing"] }
|
||||||
leptos_router = { version = "0.6", features = ["csr"] }
|
leptos_router = { version = "0.6", features = ["csr"] }
|
||||||
leptos-use = { version = "0.10", features = ["serde"] }
|
leptos-use = { version = "0.10", features = ["serde"] }
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
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"
|
futures = "0.3.30"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
|
|
|
@ -35,7 +35,7 @@ impl FiltersConfig {
|
||||||
pub fn visible(&self, object_type: apb::ObjectType) -> bool {
|
pub fn visible(&self, object_type: apb::ObjectType) -> bool {
|
||||||
match object_type {
|
match object_type {
|
||||||
apb::ObjectType::Note | apb::ObjectType::Document(_) => self.orphans,
|
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::Create) => self.creates,
|
||||||
apb::ObjectType::Activity(apb::ActivityType::Announce) => self.announces,
|
apb::ObjectType::Activity(apb::ActivityType::Announce) => self.announces,
|
||||||
apb::ObjectType::Activity(
|
apb::ObjectType::Activity(
|
||||||
|
|
Loading…
Reference in a new issue