mirror of
https://github.com/tonytins/tonybark.com.git
synced 2025-03-22 17:52:19 +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 matches = data["uri"].split("/")
|
||||||
const rkey = matches[matches.length - 1]
|
const rkey = matches[matches.length - 1]
|
||||||
const record = data["value"]
|
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, {
|
mdposts.set(rkey, {
|
||||||
title: record["title"],
|
title: record["title"],
|
||||||
createdAt: new Date(record["createdAt"]),
|
createdAt: new Date(record["createdAt"]),
|
||||||
|
|
Loading…
Add table
Reference in a new issue