From 714800ff50c9e2481ecdd8f027563675ec3cb9db Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 24 Apr 2026 16:33:34 +0900 Subject: [PATCH] Fix genesis publish 400: backend char limit was still 1,000 PreviewPanel was fixed to 10,000 in #166 but publish.ts still had the old 1,000 limit for genesis, causing 400 Bad Request on publish. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/routes/publish.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routes/publish.ts b/app/routes/publish.ts index ba6c71d..75697e4 100644 --- a/app/routes/publish.ts +++ b/app/routes/publish.ts @@ -81,7 +81,7 @@ publish.post("/file", async (c) => { // Enforce character limits const isGenesis = body.fileName === "genesis.md"; const isPlot = /^plot-\d+\.md$/.test(body.fileName); - const charLimit = isGenesis ? 1000 : isPlot ? 10000 : null; + const charLimit = (isGenesis || isPlot) ? 10000 : null; if (charLimit && body.content.length > charLimit) { return c.json({ error: `Content exceeds ${charLimit.toLocaleString()} character limit (${body.content.length.toLocaleString()} chars). Reduce content before publishing.`, diff --git a/package-lock.json b/package-lock.json index 7d32596..6c84e5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotlink-ows", - "version": "1.0.20", + "version": "1.0.24", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotlink-ows", - "version": "1.0.20", + "version": "1.0.24", "hasInstallScript": true, "workspaces": [ "packages/*" diff --git a/package.json b/package.json index fc58569..be78b7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotlink-ows", - "version": "1.0.23", + "version": "1.0.24", "bin": { "plotlink-ows": "./bin/plotlink-ows.js" },