fix: fix profile system
This commit is contained in:
1 parent
e02abec9d0
commit
7518c06410
10 files changed
+30
-8
No files matched your search
Whitespace-only changes.
Whitespace-only changes.
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user