summary refs log tree commit diff
path: root/api/src/routes/channels/#channel_id/messages/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/channels/#channel_id/messages/index.ts')
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts
index f3c3503f..53b8b437 100644
--- a/api/src/routes/channels/#channel_id/messages/index.ts
+++ b/api/src/routes/channels/#channel_id/messages/index.ts
@@ -161,7 +161,7 @@ router.get("/", async (req: Request, res: Response) => {
 // TODO: config max upload size
 const messageUpload = multer({
 	limits: {
-		fileSize: 1024 * 1024 * 100,
+		fileSize: Config.get().limits.message.maxAttachmentSize,
 		fields: 10,
 		// files: 1
 	},