"403 fixes"
This commit is contained in:
parent
e137a8771b
commit
9ae967e8af
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import UserLink from "$lib/components/UserLink.svelte";
|
import UserLink from "$lib/components/UserLink.svelte";
|
||||||
import type { PageData } from "./$types";
|
import type { PageData } from "./$types";
|
||||||
import { userData, auth, user } from "$lib/firebase";
|
import { userData, auth} from "$lib/firebase";
|
||||||
import {
|
import {
|
||||||
signInWithPopup,
|
signInWithPopup,
|
||||||
GoogleAuthProvider,
|
GoogleAuthProvider,
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<meta property="og:url" content="https://nmd.mov/{data.username}" />
|
<meta property="og:url" content="https://nmd.mov/{data.username}" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
{#if unpublished && data.username != $userData?.username}
|
{#if unpublished == false && data.username != $userData?.username}
|
||||||
<div class="card card-body m-auto">
|
<div class="card card-body m-auto">
|
||||||
<Myerror {username}></Myerror>
|
<Myerror {username}></Myerror>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -25,6 +25,6 @@ export const load = (async ({ params }) => {
|
||||||
photoURL: data.photoURL,
|
photoURL: data.photoURL,
|
||||||
bio: data.bio,
|
bio: data.bio,
|
||||||
links: data.links ?? [],
|
links: data.links ?? [],
|
||||||
published: Boolean
|
published: data.published
|
||||||
}
|
}
|
||||||
}) satisfies PageLoad;
|
}) satisfies PageLoad;
|
||||||
|
|
Loading…
Reference in a new issue