feat: add and close #169

This commit is contained in:
Xyphyn committed 2023-10-14 11:31:09 -07:00
1 parent ea594e0061
commit 108169f5a9
9 files changed
+89 -44

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
</script>
<div class="mb-4 flex flex-col gap-4">
<h1 class="font-bold text-3xl">Reports</h1>
<h1 class="font-bold text-3xl">Moderation</h1>
<div class="flex flex-row gap-2 flex-wrap items-center">
<Select
bind:value={data.type}
+1 -6
View File
@@ -76,12 +76,7 @@
}
}
const reports = await getClient().getReportCount({})
$profile.user.reports =
reports.comment_reports +
reports.post_reports +
(reports.private_message_reports ?? 0)
$profile.user.notifications.reports += item.resolved ? 1 : -1
} catch (err) {
toast({
content: err as any,