feat: add v0.19.0 support

This commit is contained in:
Xyphyn committed 2023-09-28 17:09:09 -07:00
1 parent b3b8a10e44
commit 119ab53946
62 files changed
+188 -157

No files matched your search

-2
View File
@@ -19,11 +19,9 @@ export async function load(req: any) {
community_name: req.params.name,
page: page,
sort: sort,
auth: get(profile)?.jwt,
}),
community: getClient(undefined, req.fetch).getCommunity({
name: req.params.name,
auth: get(profile)?.jwt,
}),
}
}
@@ -24,13 +24,11 @@
try {
const res = await getClient().resolveObject({
auth: $profile.jwt,
q: formData.newModerator,
})
if (res.person) {
const addModRes = await getClient().addModToCommunity({
auth: $profile.jwt,
added: true,
person_id: res.person.person.id,
community_id: data.community.community_view.community.id,
@@ -66,7 +64,6 @@
try {
const res = await getClient().addModToCommunity({
added: false,
auth: $profile.jwt,
community_id: data.community.community_view.community.id,
person_id: id,
})