Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3784:efc34a89e70b
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
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 May 2022 17:57:36 +0200 |
parents | 125c7043b277 |
children | 865167c34b82 |
comparison
equal
deleted
inserted
replaced
3783:fedbf7aade11 | 3784:efc34a89e70b |
---|---|
27 TYPE_FOLLOWERS = "followers" | 27 TYPE_FOLLOWERS = "followers" |
28 TYPE_FOLLOWING = "following" | 28 TYPE_FOLLOWING = "following" |
29 TYPE_ITEM = "item" | 29 TYPE_ITEM = "item" |
30 MEDIA_TYPE_AP = "application/activity+json" | 30 MEDIA_TYPE_AP = "application/activity+json" |
31 NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" | 31 NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" |
32 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing | |
33 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") | |
32 # mapping from AP metadata to microblog data | 34 # mapping from AP metadata to microblog data |
33 AP_MB_MAP = { | 35 AP_MB_MAP = { |
34 "content": "content_xhtml", | 36 "content": "content_xhtml", |
35 | 37 |
36 } | 38 } |