diff sat/plugins/plugin_comp_ap_gateway/constants.py @ 3793:b5c9021020df

component AP gateway: convert `Delete` AP activities to corresponding Pubsub `retract`: when a `Delete` actity is received, the item is removed from cache, and the corresponding item `retract` is sent to local XMPP subscribers. rel 367
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents 865167c34b82
children 6329ee6b6df4
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
@@ -69,7 +69,8 @@
     "Create", "Update", "Delete", "Follow", "Add", "Remove", "Like", "Block", "Undo"
 )
 ACTIVITY_TARGET_MANDATORY = ("Add", "Remove")
-# activities which can be used with Shared Inbox (i.e. with not account specified)
-ACTIVIY_NO_ACCOUNT_ALLOWED = ("create",)
+# activities which can be used with Shared Inbox (i.e. with no account specified)
+# must be lowercase
+ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete")
 # maximum number of parents to retrieve when comments_max_depth option is set
 COMMENTS_MAX_PARENTS = 100