summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-09 16:01:32 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-09 16:01:32 +1000
commit7d88188ece11b404db5c90ec890d81d738d9d2b3 (patch)
tree41aea44373b4d66f2d7feb039c5dad658ba95102 /util/src
parentFilter out schemas that block generation instead, and also include util in files (diff)
downloadserver-7d88188ece11b404db5c90ec890d81d738d9d2b3.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/src')
-rw-r--r--util/src/entities/Config.ts2
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: {