misc: Change max depth
This commit is contained in:
1 parent
e839ff6cee
commit
ccde859727
1 file changed
+12
-12
@@ -1,16 +1,16 @@
|
||||
import { lemmy } from '$lib/lemmy.js'
|
||||
|
||||
export async function load({ params }) {
|
||||
return {
|
||||
post: await lemmy.getPost({ id: Number(params.id) }),
|
||||
comments: await lemmy.getComments({
|
||||
post_id: Number(params.id),
|
||||
type_: 'All',
|
||||
limit: 20,
|
||||
page: 1,
|
||||
max_depth: 3,
|
||||
saved_only: false,
|
||||
sort: 'Hot',
|
||||
}),
|
||||
}
|
||||
return {
|
||||
post: await lemmy.getPost({ id: Number(params.id) }),
|
||||
comments: await lemmy.getComments({
|
||||
post_id: Number(params.id),
|
||||
type_: 'All',
|
||||
limit: 20,
|
||||
page: 1,
|
||||
max_depth: 6,
|
||||
saved_only: false,
|
||||
sort: 'Hot',
|
||||
}),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user