feat(apb): add emoji reacts activity

This commit is contained in:
əlemi 2024-05-11 22:48:35 +02:00
parent 0a0facae79
commit 735cef762b
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 33 additions and 0 deletions

View file

@ -29,6 +29,7 @@ default = ["activitypub-miscellaneous-terms"]
activitypub-miscellaneous-terms = [] # https://swicg.github.io/miscellany/ activitypub-miscellaneous-terms = [] # https://swicg.github.io/miscellany/
activitypub-counters = [] # https://ns.alemi.dev/as/counters/# activitypub-counters = [] # https://ns.alemi.dev/as/counters/#
activitypub-fe = [] # https://ns.alemi.dev/as/fe/# activitypub-fe = [] # https://ns.alemi.dev/as/fe/#
litepub = [] # incomplete, https://litepub.social/
# builtin utils # builtin utils
orm = ["dep:sea-orm"] orm = ["dep:sea-orm"]
fetch = ["dep:reqwest"] fetch = ["dep:reqwest"]

View file

@ -11,6 +11,38 @@ use offer::OfferType;
use intransitive::IntransitiveActivityType; use intransitive::IntransitiveActivityType;
use ignore::IgnoreType; 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! { crate::strenum! {
pub enum ActivityType { pub enum ActivityType {
Activity, Activity,