comp AP gateway: message conversion:
Convert direct AP items to XMPP `<message>` stanzas, and vice versa. Documentation will follow soon to explain the behaviour. rel 366
This commit is contained in:
parent
72ec311ef1
commit
fa81d96d79
1 changed files with 252 additions and 85 deletions
|
|
@ -29,6 +29,8 @@ TYPE_FOLLOWING = "following"
|
|||
TYPE_ITEM = "item"
|
||||
MEDIA_TYPE_AP = "application/activity+json"
|
||||
NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public"
|
||||
# 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing
|
||||
PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")
|
||||
# mapping from AP metadata to microblog data
|
||||
AP_MB_MAP = {
|
||||
"content": "content_xhtml",
|
||||
|
|
|
|||
Loading…
Reference in a new issue