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

+1 -2
View File
@@ -11,8 +11,7 @@ import { get } from 'svelte/store'
type InboxFeedType = 'replies' | 'mentions' | 'messages' | 'all'
export async function load({ url, fetch }) {
const auth = profile
if (!auth?.jwt) return
if (!profile.data.jwt) return
const type: InboxFeedType =
(url.searchParams.get('type') as InboxFeedType) || 'all'