i forgot whatever i've been doing, i think i added an inbox
This commit is contained in:
1 parent
ef037349f0
commit
04704749b7
24 files changed
+307
-86
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { authData, getClient } from '$lib/lemmy.js'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
export async function load({ params }) {
|
||||
return {
|
||||
post: getClient(params.instance).getPost({
|
||||
id: Number(params.id),
|
||||
auth: get(authData)?.token,
|
||||
}),
|
||||
streamed: {
|
||||
comments: getClient(params.instance).getComments({
|
||||
post_id: Number(params.id),
|
||||
type_: 'All',
|
||||
limit: 250,
|
||||
page: 1,
|
||||
max_depth: 6,
|
||||
saved_only: false,
|
||||
sort: 'Hot',
|
||||
auth: get(authData)?.token,
|
||||
}),
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user