comparison sat/plugins/plugin_comp_ap_gateway/constants.py @ 3824:6329ee6b6df4

component AP: convert AP identity data to XMPP: metadata are converted to vCard4 (XEP-0292). Avatar is converted to User Avatar (XEP-0084), it is downloaded, resized, converted and cached on first request. If avatar is bigger than 5 Mio, it won't be used. rel 368
author Goffi <goffi@goffi.org>
date Wed, 29 Jun 2022 12:12:09 +0200
parents b5c9021020df
children 201a22bfbb74
comparison
equal deleted inserted replaced
3823:5d72dc52ee4a 3824:6329ee6b6df4
72 # activities which can be used with Shared Inbox (i.e. with no account specified) 72 # activities which can be used with Shared Inbox (i.e. with no account specified)
73 # must be lowercase 73 # must be lowercase
74 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete") 74 ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete")
75 # 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
76 COMMENTS_MAX_PARENTS = 100 76 COMMENTS_MAX_PARENTS = 100
77 # maximum size of avatar, in bytes
78 MAX_AVATAR_SIZE = 1024 * 1024 * 5
79
80 # storage prefixes
81 ST_AVATAR = "[avatar]"