diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-09 16:01:32 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-09 16:01:32 +1000 |
commit | 6b5e48167cdbc0b98cc6b8232e682948db282e05 (patch) | |
tree | 9ea290e2b7a25e50db4f6b46335d3d525ad5f7e4 /util | |
parent | Filter out schemas that block generation instead, and also include util in files (diff) | |
download | server-6b5e48167cdbc0b98cc6b8232e682948db282e05.tar.xz |
* Make max website preview download size for embeds configurable
* Fix Message.update call throwing 'Cannot query across one-to-many for property attachments'
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts index 063a4d4d..75ff4a85 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts @@ -85,6 +85,7 @@ export interface ConfigValue { maxReactions: number; maxAttachmentSize: number; maxBulkDelete: number; + maxEmbedDownloadSize: number; }; channel: { maxPins: number; @@ -249,6 +250,7 @@ export const DefaultConfigOptions: ConfigValue = { maxTTSCharacters: 200, maxReactions: 20, maxAttachmentSize: 8388608, + maxEmbedDownloadSize: 1024 * 1024 * 5, maxBulkDelete: 100, }, channel: { |