fix: profile submissions broken
This commit is contained in:
1 parent
52888ba697
commit
6e0316b787
4 files changed
+9
-8
No files matched your search
@@ -14,8 +14,8 @@
|
||||
sort: data.sort,
|
||||
type: data.type,
|
||||
}),
|
||||
person_view: data.user.person_view,
|
||||
moderates: data.user.moderates,
|
||||
person_view: {value: data.user.person_view},
|
||||
moderates: {value: data.user.moderates},
|
||||
}}
|
||||
/>
|
||||
{:else}
|
||||
|
||||
@@ -4,8 +4,8 @@ import type { SortType } from 'lemmy-js-client'
|
||||
|
||||
export async function load({ url, fetch, parent }) {
|
||||
const page = Number(url.searchParams.get('page')) || 1
|
||||
const type: 'comments' | 'posts' | 'all' =
|
||||
(url.searchParams.get('type') as 'comments' | 'posts' | 'all') || 'all'
|
||||
const type: 'comments' | 'posts' =
|
||||
(url.searchParams.get('type') as 'comments' | 'posts') || 'posts'
|
||||
const sort: SortType = (url.searchParams.get('sort') as SortType) || 'New'
|
||||
|
||||
const { my_user } = await parent()
|
||||
|
||||
Reference in new issue
Block a user