refactor(frontend): remove warn moderation status — hardcode warn to 0 in charts, drop warn filter/badge/buttons/Api, simplify to flagged-only

This commit is contained in:
MythEclipse
2026-06-03 01:13:47 +07:00
parent b7d4e66600
commit 8d34aa7125
10 changed files with 15 additions and 108 deletions
@@ -178,17 +178,6 @@ export function reanalyzeErrorBatch(opts: {
);
}
export function moderateMessage(
id: string,
actionType: string,
reason?: string,
): Promise<{ ok: boolean }> {
return request<{ ok: boolean }>(`/api/messages/${id}/moderate`, {
method: "POST",
body: JSON.stringify({ actionType, reason }),
});
}
// ─── Guilds / Config ─────────────────────────────────────────────────────────
export function getGuilds(): Promise<Guild[]> {