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
This commit is contained in:
parent
1d5e64a6b7
commit
68c627570d
1 changed files with 172 additions and 4 deletions
|
|
@ -74,3 +74,8 @@ ACTIVITY_TARGET_MANDATORY = ("Add", "Remove")
|
|||
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]"
|
||||
|
|
|
|||
Loading…
Reference in a new issue