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
This commit is contained in:
parent
4e0c1fe7bf
commit
408dc04ee6
1 changed files with 65 additions and 2 deletions
|
|
@ -69,7 +69,8 @@ ACTIVITY_OBJECT_MANDATORY = (
|
|||
"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
|
||||
|
|
|
|||
Loading…
Reference in a new issue