fix: use pageheader where needed
This commit is contained in:
1 parent
7c66fea335
commit
1ab3f404cc
28 files changed
+132
-135
No files matched your search
@@ -4,10 +4,13 @@ import { getItemPublished } from '$lib/lemmy/item.js'
|
||||
import type { SortType } from 'lemmy-js-client'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
// disable ssr, as the server cannot be authenticated
|
||||
export let ssr = false
|
||||
|
||||
export async function load({ params, url, fetch }) {
|
||||
const my_user =
|
||||
get(profile)?.user ??
|
||||
(await client({ auth: get(profile)?.jwt }).getSite()).my_user
|
||||
(await client({ auth: get(profile)?.jwt, func: fetch }).getSite()).my_user
|
||||
|
||||
return {
|
||||
my_user: my_user,
|
||||
|
||||
Reference in new issue
Block a user