Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/constants.py Wed Jun 29 12:08:53 2022 +0200 +++ b/sat/plugins/plugin_comp_ap_gateway/constants.py Wed Jun 29 12:12:09 2022 +0200 @@ -74,3 +74,8 @@ ACTIVIY_NO_ACCOUNT_ALLOWED = ("create", "delete") # maximum number of parents to retrieve when comments_max_depth option is set COMMENTS_MAX_PARENTS = 100 +# maximum size of avatar, in bytes +MAX_AVATAR_SIZE = 1024 * 1024 * 5 + +# storage prefixes +ST_AVATAR = "[avatar]"