summary refs log tree commit diff
path: root/cdn/src/routes/attachments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cdn/src/routes/attachments.ts')
-rw-r--r--cdn/src/routes/attachments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts
index 33801932..2aed752e 100644
--- a/cdn/src/routes/attachments.ts
+++ b/cdn/src/routes/attachments.ts
@@ -68,7 +68,7 @@ router.get(
 			`attachments/${channel_id}/${id}/${filename}`
 		);
 		if (!file) throw new HTTPError("File not found");
-		const type = await FileType.fromBuffer(file);
+		const type = await FileType.fileTypeFromBuffer(file);
 		let content_type = type?.mime || "application/octet-stream";
 
 		if (SANITIZED_CONTENT_TYPE.includes(content_type)) {