comparison 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
comparison
equal deleted inserted replaced
3792:865167c34b82 3793:b5c9021020df
67 ACTIVITY_TYPES_LOWER = [a.lower() for a in ACTIVITY_TYPES] 67 ACTIVITY_TYPES_LOWER = [a.lower() for a in ACTIVITY_TYPES]
68 ACTIVITY_OBJECT_MANDATORY = ( 68 ACTIVITY_OBJECT_MANDATORY = (
69 "Create", "Update", "Delete", "Follow", "Add", "Remove", "Like", "Block", "Undo" 69 "Create", "Update", "Delete", "Follow", "Add", "Remove", "Like", "Block", "Undo"
70 ) 70 )
71 ACTIVITY_TARGET_MANDATORY = ("Add", "Remove") 71 ACTIVITY_TARGET_MANDATORY = ("Add", "Remove")
72 # activities which can be used with Shared Inbox (i.e. with not account specified) 72 # activities which can be used with Shared Inbox (i.e. with no account specified)
73 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create",) 73 # must be lowercase
74 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete")
74 # maximum number of parents to retrieve when comments_max_depth option is set 75 # maximum number of parents to retrieve when comments_max_depth option is set
75 COMMENTS_MAX_PARENTS = 100 76 COMMENTS_MAX_PARENTS = 100