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

-1
View File
@@ -32,7 +32,6 @@ export async function load({ url, fetch }) {
const client = getClient(undefined, fetch)
const params = {
auth: jwt,
limit: 20,
page: page,
unresolved_only: type == 'unread',
+1 -6
View File
@@ -26,7 +26,6 @@
switch (item.type) {
case 'comment': {
const res = await getClient().resolveCommentReport({
auth: $profile.jwt,
report_id: item.id,
resolved: !item.resolved,
})
@@ -44,7 +43,6 @@
}
case 'post': {
const res = await getClient().resolvePostReport({
auth: $profile.jwt,
report_id: item.id,
resolved: !item.resolved,
})
@@ -61,7 +59,6 @@
}
case 'message': {
const res = await getClient().resolvePrivateMessageReport({
auth: $profile.jwt,
report_id: item.id,
resolved: !item.resolved,
})
@@ -79,9 +76,7 @@
}
}
const reports = await getClient().getReportCount({
auth: $profile?.jwt,
})
const reports = await getClient().getReportCount({})
$profile.user.reports =
reports.comment_reports +