"403 fixes"

This commit is contained in:
nomadics9 2024-05-12 23:11:02 +03:00
parent e137a8771b
commit 9ae967e8af
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<script lang="ts">
import UserLink from "$lib/components/UserLink.svelte";
import type { PageData } from "./$types";
import { userData, auth, user } from "$lib/firebase";
import { userData, auth} from "$lib/firebase";
import {
signInWithPopup,
GoogleAuthProvider,
@ -53,7 +53,7 @@
<meta property="og:url" content="https://nmd.mov/{data.username}" />
</svelte:head>
{#if unpublished && data.username != $userData?.username}
{#if unpublished == false && data.username != $userData?.username}
<div class="card card-body m-auto">
<Myerror {username}></Myerror>
</div>

View file

@ -25,6 +25,6 @@ export const load = (async ({ params }) => {
photoURL: data.photoURL,
bio: data.bio,
links: data.links ?? [],
published: Boolean
published: data.published
}
}) satisfies PageLoad;