mirror of
https://github.com/tonytins/tonybark.com.git
synced 2025-03-15 07:21:21 +00:00
fix: was using wrong variable for visibility
This commit is contained in:
parent
2f1a39bfbc
commit
278c0afe74
1 changed files with 1 additions and 1 deletions
|
@ -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"]),
|
||||
|
|
Loading…
Add table
Reference in a new issue