Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3844:65e5718e7710
component AP gateway: `Announce` activity implementation:
`Announce` and `Undo` of `Announce` are now implemented and converted to suitable XEP-0277
"repeat" items, or retract.
rel 370
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 14 Jul 2022 12:55:30 +0200 |
parents | 381340b9a9ee |
children | cc13efdd8360 |
comparison
equal
deleted
inserted
replaced
3843:17c757bd74bc | 3844:65e5718e7710 |
---|---|
65 "Create", "Update", "Delete", "Follow", "Add", "Remove", "Like", "Block", "Undo" | 65 "Create", "Update", "Delete", "Follow", "Add", "Remove", "Like", "Block", "Undo" |
66 ) | 66 ) |
67 ACTIVITY_TARGET_MANDATORY = ("Add", "Remove") | 67 ACTIVITY_TARGET_MANDATORY = ("Add", "Remove") |
68 # activities which can be used with Shared Inbox (i.e. with no account specified) | 68 # activities which can be used with Shared Inbox (i.e. with no account specified) |
69 # must be lowercase | 69 # must be lowercase |
70 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete") | 70 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete", "announce", "undo") |
71 # maximum number of parents to retrieve when comments_max_depth option is set | 71 # maximum number of parents to retrieve when comments_max_depth option is set |
72 COMMENTS_MAX_PARENTS = 100 | 72 COMMENTS_MAX_PARENTS = 100 |
73 # maximum size of avatar, in bytes | 73 # maximum size of avatar, in bytes |
74 MAX_AVATAR_SIZE = 1024 * 1024 * 5 | 74 MAX_AVATAR_SIZE = 1024 * 1024 * 5 |
75 | 75 |