diff --git a/server/seed-demo.ts b/server/seed-demo.ts index e7f55f5..fc6a21f 100644 --- a/server/seed-demo.ts +++ b/server/seed-demo.ts @@ -14,6 +14,7 @@ import { getDocumentData, loadCommunity, markShapesSeeded, + updateSpaceMeta, } from "./community-store"; // ── Alpine Explorer 2026 — Demo Scenario ────────────────────────── @@ -780,6 +781,12 @@ export async function ensureDemoCommunity(): Promise { console.log("[Demo] Created demo community with visibility: public"); } else { await loadCommunity("demo"); + // Ensure visibility stays "public" (older docs may have been created as "private") + const doc = getDocumentData("demo"); + if (doc?.meta?.visibility !== "public") { + updateSpaceMeta("demo", { visibility: "public" }); + console.log("[Demo] Fixed demo visibility → public"); + } } // Check if already seeded (has shapes or was previously seeded then cleared)