feat: add federation management

This commit is contained in:
Xyphyn committed 2023-09-06 18:00:14 -07:00
1 parent 0c6cab22f3
commit e530dcd05f
17 files changed
+386 -33

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { profile } from '$lib/auth.js'
import { getClient } from '$lib/lemmy.js'
import { get } from 'svelte/store'
export async function load({ fetch, parent }) {
const instances = await getClient(undefined, fetch).getFederatedInstances({
auth: get(profile)?.jwt,
})
return {
federated_instances: instances,
}
}