fix: inbox using wrong jwt
This commit is contained in:
13 files changed
+5
-33
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user