fix: fix profile system

This commit is contained in:
Xyphyn committed 2023-08-22 17:17:51 -07:00
1 parent e02abec9d0
commit 7518c06410
10 files changed
+30 -8

No files matched your search

-2
View File
@@ -5,8 +5,6 @@ import type { SortType } from 'lemmy-js-client'
import { get } from 'svelte/store'
export async function load({ params, url, fetch }) {
if (!get(profile)?.user) return {}
const page = Number(url.searchParams.get('page')) || 1
const type: 'comments' | 'posts' | 'all' =
(url.searchParams.get('type') as 'comments' | 'posts' | 'all') || 'all'