Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_comp_ap_gateway/constants.py @ 4109:7067b0d73183
component AP gateway: fix AP media type in GET and POST requests headers
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jul 2023 11:34:52 +0200 |
parents | ec9bed9df74f |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4108:238e305f2306 | 4109:7067b0d73183 |
---|---|
33 TYPE_LIKE = "Like" | 33 TYPE_LIKE = "Like" |
34 TYPE_REACTION = "EmojiReact" | 34 TYPE_REACTION = "EmojiReact" |
35 TYPE_EVENT = "Event" | 35 TYPE_EVENT = "Event" |
36 TYPE_JOIN = "Join" | 36 TYPE_JOIN = "Join" |
37 TYPE_LEAVE = "Leave" | 37 TYPE_LEAVE = "Leave" |
38 MEDIA_TYPE_AP = "application/activity+json" | 38 MEDIA_TYPE_AP = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' |
39 MEDIA_TYPE_AP_ALT = "application/activity+json" | |
39 NS_AP = "https://www.w3.org/ns/activitystreams" | 40 NS_AP = "https://www.w3.org/ns/activitystreams" |
40 NS_AP_PUBLIC = f"{NS_AP}#Public" | 41 NS_AP_PUBLIC = f"{NS_AP}#Public" |
41 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing | 42 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing |
42 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") | 43 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") |
43 AP_REQUEST_TYPES = { | 44 AP_REQUEST_TYPES = { |