fix(workshop): expose moderation

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-13 19:51:44 +02:00
1 parent 40b726b8bc
commit 3efe64a062
13 files changed
+58 -12

No files matched your search

+2 -1
View File
@@ -268,11 +268,12 @@ const report = await request("/api/collections/reports/records", {
body: JSON.stringify({
submission: submission.id,
reporter: visitor.id,
category: "other",
category: "outdated",
explanation: "Runtime moderation test",
status: "dismissed",
}),
});
if (report.category !== "outdated") throw new Error("Outdated Workshop reports must be accepted");
await expectStatus(`/api/collections/reports/records/${report.id}`, { headers: visitorSession.headers }, 404);
await expectStatus("/api/collections/reports/records", { headers: visitorSession.headers }, 200);
const publicReports = await request("/api/collections/reports/records", { headers: visitorSession.headers });