From 1b134467ed93a3c0f3297795b6feaedc98770c5c Mon Sep 17 00:00:00 2001 From: Kaitlyn Allan Date: Sun, 19 Mar 2023 20:06:24 +1000 Subject: [PATCH] Fix error saving drive file caption > 512 chars --- packages/backend/src/server/api/endpoints/drive/files/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/drive/files/update.ts b/packages/backend/src/server/api/endpoints/drive/files/update.ts index d113b978f6..e681f1294f 100644 --- a/packages/backend/src/server/api/endpoints/drive/files/update.ts +++ b/packages/backend/src/server/api/endpoints/drive/files/update.ts @@ -54,7 +54,7 @@ export const paramDef = { folderId: { type: "string", format: "misskey:id", nullable: true }, name: { type: "string" }, isSensitive: { type: "boolean" }, - comment: { type: "string", nullable: true, maxLength: 512 }, + comment: { type: "string", nullable: true, maxLength: DB_MAX_IMAGE_COMMENT_LENGTH }, }, required: ["fileId"], } as const;