Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py Tue May 24 17:49:14 2022 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py Tue May 24 17:57:36 2022 +0200 @@ -29,6 +29,8 @@ 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",