feat: add v0.19.0 support
This commit is contained in:
1 parent
b3b8a10e44
commit
119ab53946
62 files changed
+188
-157
No files matched your search
@@ -66,7 +66,6 @@
|
||||
if (!blocked) allowedInstances.push(instance)
|
||||
|
||||
await getClient().editSite({
|
||||
auth: $profile.jwt,
|
||||
blocked_instances: blockedInstances,
|
||||
allowed_instances: allowedInstances,
|
||||
})
|
||||
@@ -102,7 +101,6 @@
|
||||
)
|
||||
|
||||
return await getClient().editSite({
|
||||
auth: $profile.jwt,
|
||||
allowed_instances: allowedInstances,
|
||||
blocked_instances: blockedInstances,
|
||||
})
|
||||
|
||||
@@ -3,9 +3,7 @@ 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,
|
||||
})
|
||||
const instances = await getClient(undefined, fetch).getFederatedInstances()
|
||||
|
||||
return {
|
||||
federated_instances: instances,
|
||||
|
||||
Reference in new issue
Block a user