comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3792:865167c34b82

comp AP gateway: convert pubsub item retractation to AP `Delete` activity: when an item `retract` is received from a node from which an AP actor is subscribed, a corresponding `Delete` activity is created and sent to AP followers. Trying to retract an item from a virtual node of the gateway pubsub service now return a `forbidden` stanza error (those nodes are handled on AP side and thus are not owned by XMPP entities). rel 367
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents efc34a89e70b
children b5c9021020df
comparison
equal deleted inserted replaced
3791:c61233f51b86 3792:865167c34b82
25 TYPE_SHARED_INBOX = "shared_inbox" 25 TYPE_SHARED_INBOX = "shared_inbox"
26 TYPE_OUTBOX = "outbox" 26 TYPE_OUTBOX = "outbox"
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 TYPE_TOMBSTONE = "Tombstone"
30 MEDIA_TYPE_AP = "application/activity+json" 31 MEDIA_TYPE_AP = "application/activity+json"
31 NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public" 32 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 # 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing
33 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public") 34 PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")
34 # mapping from AP metadata to microblog data 35 # mapping from AP metadata to microblog data