fix: inbox using wrong jwt

This commit is contained in:
James Xylight committed 2025-02-08 14:44:34 -08:00
1 parent ebbabdfd7f
commit cef63faf93
13 files changed
+5 -33

No files matched your search

-2
View File
@@ -1,7 +1,5 @@
import { profile } from '$lib/auth.svelte'
import { client } from '$lib/lemmy.js'
import { error } from '@sveltejs/kit'
import { get } from 'svelte/store'
export async function load({ fetch, url }) {
const { jwt } = profile.data
-2
View File
@@ -1,8 +1,6 @@
import { profile } from '$lib/auth.svelte'
import { getClient } from '$lib/lemmy.js'
import { getItemPublished } from '$lib/lemmy/item.js'
import type { SortType } from 'lemmy-js-client'
import { get } from 'svelte/store'
export async function load({ url, fetch, parent }) {
const page = Number(url.searchParams.get('page')) || 1