component AP gateway: events:
- XMPP Events <=> AP Events conversion - `Join`/`Leave` activities are converted to RSVP attachments and vice versa - fix caching/notification on item published on a virtual pubsub node - add Ad-Hoc command to convert XMPP Jid/Node to virtual AP Account - handle `Update` activity - on `convertAndPostItems`, `Update` activity is used instead of `Create` if a version of the item is already present in cache - `events` field is added to actor data (and to `endpoints`), it links the `outbox` of the actor mapping the same JID with the Events node (i.e. it links to the Events node of the entity) - fix subscription to nodes which are not the microblog one rel 372
This commit is contained in:
parent
97c0d6a0e5
commit
adea3770de
1 changed files with 808 additions and 103 deletions
|
|
@ -31,6 +31,9 @@ TYPE_TOMBSTONE = "Tombstone"
|
|||
TYPE_MENTION = "Mention"
|
||||
TYPE_LIKE = "Like"
|
||||
TYPE_REACTION = "EmojiReact"
|
||||
TYPE_EVENT = "Event"
|
||||
TYPE_JOIN = "Join"
|
||||
TYPE_LEAVE = "Leave"
|
||||
MEDIA_TYPE_AP = "application/activity+json"
|
||||
NS_AP = "https://www.w3.org/ns/activitystreams"
|
||||
NS_AP_PUBLIC = f"{NS_AP}#Public"
|
||||
|
|
@ -73,7 +76,8 @@ ACTIVITY_TARGET_MANDATORY = ("Add", "Remove")
|
|||
# activities which can be used with Shared Inbox (i.e. with no account specified)
|
||||
# must be lowercase
|
||||
ACTIVIY_NO_ACCOUNT_ALLOWED = (
|
||||
"create", "delete", "announce", "undo", "like", "emojireact"
|
||||
"create", "update", "delete", "announce", "undo", "like", "emojireact", "join",
|
||||
"leave"
|
||||
)
|
||||
# maximum number of parents to retrieve when comments_max_depth option is set
|
||||
COMMENTS_MAX_PARENTS = 100
|
||||
|
|
|
|||
Loading…
Reference in a new issue