From 278c0afe748fc4335f4566be0101bf7a8b49e3aa Mon Sep 17 00:00:00 2001 From: hugeblank Date: Tue, 17 Dec 2024 18:15:51 -0800 Subject: [PATCH] fix: was using wrong variable for visibility --- src/routes/+layout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 74da6a6..9989994 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -68,7 +68,7 @@ export async function load() { const matches = data["uri"].split("/") const rkey = matches[matches.length - 1] const record = data["value"] - if (matches && matches.length === 5 && record && (record["visibility"] === "public" || !data["visibility"])) { + if (matches && matches.length === 5 && record && (record["visibility"] === "public" || !record["visibility"])) { mdposts.set(rkey, { title: record["title"], createdAt: new Date(record["createdAt"]),