mrf/steal_emoji: display download_unknown_size in admin-fe

Fixes omission in d6d838cbe8
This commit is contained in:
Oneric 2024-06-05 20:09:52 +02:00
parent be5440c5e8
commit df27567d99

View file

@ -181,7 +181,7 @@ def filter(message), do: {:ok, message}
description: <<_::272, _::_*256>>, description: <<_::272, _::_*256>>,
key: :hosts | :rejected_shortcodes | :size_limit, key: :hosts | :rejected_shortcodes | :size_limit,
suggestions: [any(), ...], suggestions: [any(), ...],
type: {:list, :string} | {:list, :string} | :integer type: {:list, :string} | {:list, :string} | :integer | :boolean
}, },
... ...
], ],
@ -218,6 +218,12 @@ def config_description do
type: :integer, type: :integer,
description: "File size limit (in bytes), checked before an emoji is saved to the disk", description: "File size limit (in bytes), checked before an emoji is saved to the disk",
suggestions: ["100000"] suggestions: ["100000"]
},
%{
key: :download_unknown_size,
type: :boolean,
description: "Whether to download emoji if size can't be determined ahead of time",
suggestions: [false, true]
} }
] ]
} }