Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py Fri Jun 17 14:15:23 2022 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py Fri Jun 17 14:15:23 2022 +0200 @@ -27,6 +27,7 @@ TYPE_FOLLOWERS = "followers" TYPE_FOLLOWING = "following" TYPE_ITEM = "item" +TYPE_TOMBSTONE = "Tombstone" 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