diff --git a/apb/Cargo.toml b/apb/Cargo.toml index 9449d0d..fce7a03 100644 --- a/apb/Cargo.toml +++ b/apb/Cargo.toml @@ -29,6 +29,7 @@ default = ["activitypub-miscellaneous-terms"] activitypub-miscellaneous-terms = [] # https://swicg.github.io/miscellany/ activitypub-counters = [] # https://ns.alemi.dev/as/counters/# activitypub-fe = [] # https://ns.alemi.dev/as/fe/# +litepub = [] # incomplete, https://litepub.social/ # builtin utils orm = ["dep:sea-orm"] fetch = ["dep:reqwest"] diff --git a/apb/src/types/object/activity/mod.rs b/apb/src/types/object/activity/mod.rs index 7b24bbe..90c12eb 100644 --- a/apb/src/types/object/activity/mod.rs +++ b/apb/src/types/object/activity/mod.rs @@ -11,6 +11,38 @@ use offer::OfferType; use intransitive::IntransitiveActivityType; use ignore::IgnoreType; +#[cfg(feature = "litepub")] +crate::strenum! { + pub enum ActivityType { + Activity, + Add, + Announce, + Create, + Delete, + Dislike, + EmojiReact, + Flag, + Follow, + Join, + Leave, + Like, + Listen, + Move, + Read, + Remove, + Undo, + Update, + View; + + IntransitiveActivity(IntransitiveActivityType), + Accept(AcceptType), + Ignore(IgnoreType), + Offer(OfferType), + Reject(RejectType) + }; +} + +#[cfg(not(feature = "litepub"))] crate::strenum! { pub enum ActivityType { Activity,