Add media attachment functionality to posts

This commit is contained in:
Jesse Wierzbinski 2023-11-22 13:40:31 -10:00
parent c66e1ac146
commit 28a16e95a4
No known key found for this signature in database
5 changed files with 211 additions and 44 deletions

View file

@ -41,6 +41,10 @@ export interface ConfigType {
max_media_size: number;
max_media_attachments: number;
max_media_description_size: number;
max_poll_options: number;
max_poll_option_size: number;
min_poll_duration: number;
max_poll_duration: number;
username_blacklist: string[];
blacklist_tempmail: boolean;
@ -181,8 +185,12 @@ export const configDefaults: ConfigType = {
max_avatar_size: 5_000_000,
max_header_size: 5_000_000,
max_media_size: 40_000_000,
max_media_attachments: 4,
max_media_attachments: 10,
max_media_description_size: 1000,
max_poll_options: 20,
max_poll_option_size: 500,
min_poll_duration: 60,
max_poll_duration: 1893456000,
max_username_size: 30,
username_blacklist: [