fix: improper route gating (#596)

This commit is contained in:
Xylight authored and GitHub committed 2025-06-25 19:01:00 +00:00
1 parent a8b65750ca
commit 9f4790326f
6 files changed
+25 -20

No files matched your search

+2 -1
View File
@@ -7,11 +7,12 @@ import {
generalizePrivateMessage,
} from '$lib/lemmy/inbox.js'
import { ReactiveState } from '$lib/promise.svelte.js'
import { error } from '@sveltejs/kit'
type InboxFeedType = 'replies' | 'mentions' | 'messages' | 'all'
export async function load({ url, fetch }) {
if (!profile.data.jwt) return
if (!profile.data.jwt) error(401)
const type: InboxFeedType =
(url.searchParams.get('type') as InboxFeedType) || 'all'