Mercurial > libervia-backend
diff sat/plugins/plugin_comp_ap_gateway/constants.py @ 3846:cc13efdd8360
component AP gateway: return item when `item` URL is used:
a request on an `item` type URL will return the suitable cached item.
rel 370
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 14 Jul 2022 12:55:30 +0200 |
parents | 65e5718e7710 |
children | 59fbb66b2923 |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py Thu Jul 14 12:55:30 2022 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py Thu Jul 14 12:55:30 2022 +0200 @@ -30,7 +30,8 @@ TYPE_TOMBSTONE = "Tombstone" TYPE_MENTION = "Mention" MEDIA_TYPE_AP = "application/activity+json" -NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" +NS_AP = "https://www.w3.org/ns/activitystreams" +NS_AP_PUBLIC = f"{NS_AP}#Public" # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") AP_REQUEST_TYPES = {