fix: was using wrong variable for visibility

This commit is contained in:
hugeblank 2024-12-17 18:15:51 -08:00
parent 2f1a39bfbc
commit 278c0afe74

View file

@ -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"]),