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
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-07-09 09:45:28 +0300
commit2236cf593ccc2426b5bad5f88d0cd64e7e0e4c17 (patch)
tree60fd049fff2fb5281a371b3fcfc6c1a276980db5 /util/src
parentMerge pull request #783 from MaddyUnderStars/feat/multiUploads (diff)
downloadserver-2236cf593ccc2426b5bad5f88d0cd64e7e0e4c17.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: {