diff options
author | Andrew Godwin | 2022-12-17 12:53:13 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-17 12:53:13 -0700 |
commit | 2eb07a5f5fce5075369c0fdc3548b1bbd25f3362 (patch) | |
tree | a5d33445f8abdb633ec7a3e338625e335fa7ec30 /takahe | |
parent | 24a4fbe1f820e6ce13a969f39dd7676894987532 (diff) | |
download | takahe-2eb07a5f5fce5075369c0fdc3548b1bbd25f3362.tar.gz takahe-2eb07a5f5fce5075369c0fdc3548b1bbd25f3362.tar.bz2 takahe-2eb07a5f5fce5075369c0fdc3548b1bbd25f3362.zip |
Download and store user avatars locally if small
Diffstat (limited to 'takahe')
-rw-r--r-- | takahe/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/takahe/settings.py b/takahe/settings.py index 3017293..d284e0e 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -107,6 +107,10 @@ class Settings(BaseSettings): #: is necessary for compatibility with Mastodon’s image proxy. MEDIA_MAX_IMAGE_FILESIZE_MB: int = 10 + #: Maximum filesize for Avatars. Remote avatars larger than this size will + #: not be fetched and served from media, but served through the image proxy. + AVATAR_MAX_IMAGE_FILESIZE_KB: int = 1000 + #: Maximum filesize for Emoji. Attempting to upload Local Emoji larger than this size will be #: blocked. Remote Emoji larger than this size will not be fetched and served from media, but #: served through the image proxy. |