forked from alemi/upub
feat(apb): add emoji reacts activity
This commit is contained in:
parent
0a0facae79
commit
735cef762b
2 changed files with 33 additions and 0 deletions
|
@ -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"]
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue