feat: Add user pages
This commit is contained in:
1 parent
04704749b7
commit
9efe1df0c2
12 files changed
+222
-29
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { authData, getClient } from '$lib/lemmy.js'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
export function load({ params }) {
|
||||
return {
|
||||
user: getClient().getPersonDetails({
|
||||
limit: 40,
|
||||
page: 1,
|
||||
username: params.name,
|
||||
sort: 'New',
|
||||
auth: get(authData)?.token,
|
||||
}),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user