diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2022-02-06 17:41:15 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2022-02-06 17:41:15 +0100 |
commit | e473bcf7a0390584377d89ff68267a25fe31e44d (patch) | |
tree | 34686c246e9517ae9018175ffee93804935d59c0 /config | |
parent | 60deddb7e5b8bb10037cca6e6f11a5bbef298d39 (diff) | |
download | pleroma-e473bcf7a0390584377d89ff68267a25fe31e44d.tar.gz |
Max media attachment count
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 3 | ||||
-rw-r--r-- | config/description.exs | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index 5e82f203c..6a5acda09 100644 --- a/config/config.exs +++ b/config/config.exs @@ -259,7 +259,8 @@ config :pleroma, :instance, privileged_staff: false, max_endorsed_users: 20, birthday_required: false, - birthday_min_age: 0 + birthday_min_age: 0, + max_media_attachments: 1_000 config :pleroma, :welcome, direct_message: [ diff --git a/config/description.exs b/config/description.exs index 3f66877e4..704af8f68 100644 --- a/config/description.exs +++ b/config/description.exs @@ -553,6 +553,14 @@ config :pleroma, :config_description, [ ] }, %{ + key: :max_media_attachments, + type: :integer, + description: "Maximum number of post media attachments", + suggestions: [ + 1_000_000 + ] + }, + %{ key: :upload_limit, type: :integer, description: "File size limit of uploads (except for avatar, background, banner)", |